Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
tests/queries/0_stateless/02975_system_zookeeper_retries.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/keeper api_version | ||
/keeper feature_flags | ||
1 |
21 changes: 21 additions & 0 deletions
21
tests/queries/0_stateless/02975_system_zookeeper_retries.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-- Tags: zookeeper, no-parallel, no-fasttest | ||
|
||
SELECT path, name | ||
FROM system.zookeeper | ||
WHERE path = '/keeper' | ||
ORDER BY path, name | ||
SETTINGS | ||
insert_keeper_retry_initial_backoff_ms = 1, | ||
insert_keeper_retry_max_backoff_ms = 20, | ||
insert_keeper_fault_injection_probability=0.5, | ||
log_comment='02975_system_zookeeper_retries'; | ||
|
||
|
||
SYSTEM FLUSH LOGS; | ||
|
||
-- Check that there where zk session failures | ||
SELECT ProfileEvents['ZooKeeperHardwareExceptions'] > 0 | ||
FROM system.query_log | ||
WHERE current_database = currentDatabase() AND type = 'QueryFinish' AND log_comment='02975_system_zookeeper_retries' | ||
ORDER BY event_time_microseconds DESC | ||
LIMIT 1; |