Skip to content

Commit f052fdf

Browse files
committed
fix: ensure integer comparison for disk fsync latency in etcd validation
Signed-off-by: redscholar <blacktiledhouse@gmail.com>
1 parent fa2fdb9 commit f052fdf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • builtin/core/roles/precheck/etcd/tasks

builtin/core/roles/precheck/etcd/tasks/main.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
register_type: json
4545
- name: ETCD | Assert disk fsync latency meets requirements
4646
assert:
47-
that: (index (.fio_result.stdout.jobs | first) "sync" "lat_ns" "percentile" "90.000000") | ge .cluster_require.etcd_disk_wal_fysnc_duration_seconds
47+
that: (index (.fio_result.stdout.jobs | first) "sync" "lat_ns" "percentile" "90.000000") | int | ge (int .cluster_require.etcd_disk_wal_fysnc_duration_seconds)
4848
fail_msg: >-
4949
The 90th percentile fsync latency is {{ index (.fio_result.stdout.jobs | first) "sync" "lat_ns" "percentile" "90.000000" }}ns, which exceeds the maximum allowed: {{ .cluster_require.etcd_disk_wal_fysnc_duration_seconds }}ns.
50-
always:
51-
- name: ETCD | Clean up fio test data directory
52-
command: rm -rf {{ .tmp_dir }}/etcd/test-data
50+
always:
51+
- name: ETCD | Clean up fio test data directory
52+
command: rm -rf {{ .tmp_dir }}/etcd/test-data

0 commit comments

Comments
 (0)