Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,21 @@ TEST_F(ExportPartitionOrderingTest, IterationOrderMatchesCreateTime)
manifest1.partition_id = "2020";
manifest1.destination_database = "db1";
manifest1.destination_table = "table1";
manifest1.transaction_id = "tx1";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I right that problem was that all manifests got same (empty) transaction_id?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, because one of my latest changes was adding an unique index for transaction_id. See

.

That caused the entries to be replaced

manifest1.create_time = base_time + 300; // Latest

ExportReplicatedMergeTreePartitionManifest manifest2;
manifest2.partition_id = "2021";
manifest2.destination_database = "db1";
manifest2.destination_table = "table1";
manifest2.transaction_id = "tx2";
manifest2.create_time = base_time + 100; // Middle

ExportReplicatedMergeTreePartitionManifest manifest3;
manifest3.partition_id = "2022";
manifest3.destination_database = "db1";
manifest3.destination_table = "table1";
manifest3.transaction_id = "tx3";
manifest3.create_time = base_time; // Oldest

ExportReplicatedMergeTreePartitionTaskEntry entry1{manifest1, ExportReplicatedMergeTreePartitionTaskEntry::Status::PENDING, {}};
Expand Down
Loading