mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Fix check in test_broken_projections
This commit is contained in:
parent
22ceaa0066
commit
9a2a6d71d2
@ -735,11 +735,14 @@ def test_mutation_with_broken_projection(cluster):
|
|||||||
f"ALTER TABLE {table_name} DELETE WHERE _part == 'all_0_0_0_4' SETTINGS mutations_sync = 1"
|
f"ALTER TABLE {table_name} DELETE WHERE _part == 'all_0_0_0_4' SETTINGS mutations_sync = 1"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
parts = get_parts(node, table_name)
|
||||||
# All parts changes because this is how alter delete works,
|
# All parts changes because this is how alter delete works,
|
||||||
# but all parts apart from the first have only hardlinks to files in previous part.
|
# but all parts apart from the first have only hardlinks to files in previous part.
|
||||||
assert ["all_0_0_0_5", "all_1_1_0_5", "all_2_2_0_5", "all_3_3_0_5"] == get_parts(
|
assert ["all_0_0_0_5", "all_1_1_0_5", "all_2_2_0_5", "all_3_3_0_5"] == parts or [
|
||||||
node, table_name
|
"all_1_1_0_5",
|
||||||
) or ["all_1_1_0_5", "all_2_2_0_5", "all_3_3_0_5"] == get_parts(node, table_name)
|
"all_2_2_0_5",
|
||||||
|
"all_3_3_0_5",
|
||||||
|
] == parts
|
||||||
|
|
||||||
# Still broken because it was hardlinked.
|
# Still broken because it was hardlinked.
|
||||||
broken = get_broken_projections_info(node, table_name)
|
broken = get_broken_projections_info(node, table_name)
|
||||||
@ -752,11 +755,13 @@ def test_mutation_with_broken_projection(cluster):
|
|||||||
f"ALTER TABLE {table_name} DELETE WHERE c == 13 SETTINGS mutations_sync = 1"
|
f"ALTER TABLE {table_name} DELETE WHERE c == 13 SETTINGS mutations_sync = 1"
|
||||||
)
|
)
|
||||||
|
|
||||||
assert ["all_1_1_0_6", "all_2_2_0_6", "all_3_3_0_6"] == get_parts(
|
parts = get_parts(node, table_name)
|
||||||
node, table_name
|
assert ["all_1_1_0_6", "all_2_2_0_6", "all_3_3_0_6"] == parts or [
|
||||||
) or ["all_0_0_0_6", "all_1_1_0_6", "all_2_2_0_6", "all_3_3_0_6"] == get_parts(
|
"all_0_0_0_6",
|
||||||
node, table_name
|
"all_1_1_0_6",
|
||||||
)
|
"all_2_2_0_6",
|
||||||
|
"all_3_3_0_6",
|
||||||
|
] == parts
|
||||||
|
|
||||||
# Not broken anymore.
|
# Not broken anymore.
|
||||||
assert not get_broken_projections_info(node, table_name)
|
assert not get_broken_projections_info(node, table_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user