Skip to content

Fix: determine SnapshotTableInfo equality with fingerprint only#3980

Merged
treysp merged 1 commit intomainfrom
trey/snap-tblinfo-eq
Mar 12, 2025
Merged

Fix: determine SnapshotTableInfo equality with fingerprint only#3980
treysp merged 1 commit intomainfrom
trey/snap-tblinfo-eq

Conversation

@treysp
Copy link
Contributor

@treysp treysp commented Mar 12, 2025

The view promotion logic determines what snapshots have been added based on equality between SnapshotTableInfo objects.

In some cases, two snapshots' table infos may be functionally identical but have their parent node lists ordered differently. When this occurs, we incorrectly determine that they are not the same snapshot.

This PR overrides the SnapshotTableInfo __eq__ method to determine equality based solely on the snapshot fingerprint. All other similar comparisons in the code already use fingerprint.

@treysp treysp changed the title Fix: determine SnapshotTableInfo __eq__ with fingerprint only Fix: determine SnapshotTableInfo equality with fingerprint only Mar 12, 2025
@treysp treysp requested a review from izeigerman March 12, 2025 18:28
@treysp treysp merged commit 151135e into main Mar 12, 2025
22 checks passed
@treysp treysp deleted the trey/snap-tblinfo-eq branch March 12, 2025 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants