Skip to content

Core: Fix REST catalog tests with default v2 tables - #8469

Merged
nastra merged 2 commits into
apache:masterfrom
rdblue:fix-rest-tests-with-v2-tables
Sep 3, 2023
Merged

nastra merged 2 commits into
apache:masterfrom
rdblue:fix-rest-tests-with-v2-tables

Conversation

@rdblue

@rdblue rdblue commented Sep 2, 2023

Copy link
Copy Markdown
Contributor

This fixes #8390, which was a problem from #8381. The REST catalog was failing standard catalog tests because it would reuse a sequence number when a concurrent commit that added a snapshot.

The fix is to allow a reused sequence number when the entire table state is replaced; that is, when the snapshot has no parent. That is the easiest fix because the replace table code does not currently rewrite snapshot metadata on retry. Rewriting snapshot metadata in that case isn't necessary because there is no previous data so reusing a sequence number is safe.

@rdblue
rdblue requested a review from aokolnychyi September 2, 2023 22:05
@github-actions github-actions Bot added the core label Sep 2, 2023

@amogh-jahagirdar amogh-jahagirdar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I followed the rationale provided here this fix makes sense to me.

@Fokko Fokko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Makes sense to me

@nastra
nastra merged commit b9fc08c into apache:master Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix REST catalogs behavior with v2 tables

5 participants