Cover fallback_to_stale_replicas in conjunction with skip_unavailable_shards

This commit is contained in:
Azat Khuzhin 2020-04-22 01:45:51 +03:00
parent 0cc9dbd35b
commit e0f58b1ca1

View File

@ -81,6 +81,14 @@ SELECT sum(x) FROM distributed SETTINGS
max_replica_delay_for_distributed_queries=1
''').strip() == '3'
# Regression for skip_unavailable_shards in conjunction with skip_unavailable_shards
assert instance_with_dist_table.query('''
SELECT sum(x) FROM distributed SETTINGS
load_balancing='in_order',
skip_unavailable_shards=1,
max_replica_delay_for_distributed_queries=1
''').strip() == '3'
# If we forbid stale replicas, the query must fail.
with pytest.raises(Exception):
print instance_with_dist_table.query('''