Skip to content

Commit

Permalink
Test retries
Browse files Browse the repository at this point in the history
  • Loading branch information
davenger committed Jan 31, 2024
1 parent 5947e5b commit 7c1e318
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
@@ -0,0 +1,3 @@
/keeper api_version
/keeper feature_flags
1
21 changes: 21 additions & 0 deletions tests/queries/0_stateless/02975_system_zookeeper_retries.sql
@@ -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;

0 comments on commit 7c1e318

Please sign in to comment.