This commit is contained in:
Alexander Tokmakov 2023-11-04 22:48:29 +01:00
parent 6ad8e789f6
commit 155bdfcf0d
3 changed files with 5 additions and 2 deletions

View File

@ -1365,7 +1365,7 @@ void StorageReplicatedMergeTree::checkParts(bool skip_sanity_checks)
paranoidCheckForCoveredPartsInZooKeeperOnStart(expected_parts_vec, parts_to_fetch);
ActiveDataPartSet empty_unexpected_parts_set(format_version);
for (auto & part : parts)
for (const auto & part : parts)
{
if (part->rows_count || part->getState() != MergeTreeDataPartState::Active || expected_parts.contains(part->name))
continue;

View File

@ -73,6 +73,9 @@ def test_merge_doesnt_work_without_zookeeper(start_cluster):
== "0\n"
)
node1.query("DETACH TABLE test_table SYNC")
node1.query("ATTACH TABLE test_table")
node1.query(
"INSERT INTO test_table VALUES ('2018-10-01', 1), ('2018-10-02', 2), ('2018-10-03', 3)"
)

View File

@ -24,4 +24,4 @@ all_5_5_0 data Tuple(name String, value Float64)
all_4_4_0 data Tuple(name String, value Int16)
all_5_5_0 data Tuple(name String, value Float64)
all_6_6_0 data Tuple(name String, value String)
all_4_6_4 data Tuple(name String, value String)
all_4_6_1 data Tuple(name String, value String)