Skip to content

Commit

Permalink
Update 02916_distributed_skip_unavailable_shards.sql/.reference files.
Browse files Browse the repository at this point in the history
  • Loading branch information
tntnatbry committed Dec 12, 2023
1 parent 229a044 commit bae58fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
@@ -1,2 +1 @@
1234 abcd 1
1234 abcd 1
@@ -1,7 +1,5 @@
-- Tags: shard, no-fasttest

SET prefer_localhost_replica = 0; -- Always do network communication to check if the shard is unavailable.

DROP TABLE IF EXISTS table_02916;
DROP TABLE IF EXISTS table_02916_distributed;

Expand All @@ -23,8 +21,8 @@ CREATE TABLE table_02916_distributed
ENGINE = Distributed(test_unavailable_shard, currentDatabase(), table_02916, rand())
SETTINGS skip_unavailable_shards = 1;

SET send_logs_level='fatal';
SELECT *, _shard_num FROM table_02916_distributed;
SELECT *, _shard_num FROM table_02916_distributed SETTINGS skip_unavailable_shards=0; -- { serverError ALL_CONNECTION_TRIES_FAILED }

DROP TABLE table_02916_distributed;
DROP TABLE table_02916;

0 comments on commit bae58fe

Please sign in to comment.