Commit c79630b
Fix flaky
When `faster_zk_disconnect_detect.xml` is randomly chosen (which sets
`session_timeout_ms=5000`), the ZK connection drop via iptables must be
short enough to avoid session expiry. Previously, the drop duration was
up to 3-4 seconds via `random_sleep`. Combined with the time since the
last heartbeat (~1.7s for a 5s session timeout) and reconnection
overhead, the total silence could exceed 5 seconds, causing the ZK
session to expire and the backup/restore to fail regardless of the
30-second `failure_after_host_disconnected_for_seconds` threshold.
The fix limits the drop duration to 1 second when using the faster ZK
disconnect detection config, while keeping the original duration when
using default ZK settings.
CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=96758&sha=d29b41fbe684f8c90ace4fd71828ce0d4ac8b88f&name_0=PR&name_1=Integration%20tests%20%28arm_binary%2C%20distributed%20plan%2C%204%2F4%29
Closes: #80359
Co-Authored-By: Claude Sonnet 4.5 (1M context) <[email protected]>test_short_disconnection_doesnt_stop_backup and test_short_disconnection_doesnt_stop_restore
1 parent 190cda3 commit c79630b
File tree
1 file changed
+8
-2
lines changed- tests/integration/test_backup_restore_on_cluster
1 file changed
+8
-2
lines changedLines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
682 | 685 | | |
683 | 686 | | |
684 | 687 | | |
685 | 688 | | |
686 | 689 | | |
687 | 690 | | |
688 | 691 | | |
689 | | - | |
| 692 | + | |
690 | 693 | | |
691 | 694 | | |
692 | 695 | | |
| |||
733 | 736 | | |
734 | 737 | | |
735 | 738 | | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
736 | 742 | | |
737 | 743 | | |
738 | 744 | | |
739 | 745 | | |
740 | 746 | | |
741 | 747 | | |
742 | 748 | | |
743 | | - | |
| 749 | + | |
744 | 750 | | |
745 | 751 | | |
746 | 752 | | |
| |||
0 commit comments