Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: tolerate missing partition folders in 6.2.1 -> 6.3 migration #2114

Merged
merged 10 commits into from May 12, 2022

Conversation

ideoma
Copy link
Collaborator

@ideoma ideoma commented May 10, 2022

When last partition exists in _txn file but does not exist on disk (perhaps QuestDB was hard aborted) Mig620 fails.

The fix will tolerate missing partitions, including missing last partition assuming column presence in the missing partition is the same as in the proceeding partition.

@ideoma ideoma self-assigned this May 10, 2022
@ideoma ideoma requested a review from bluestreak01 May 11, 2022 14:22
bluestreak01
bluestreak01 previously approved these changes May 11, 2022
@ideoma ideoma changed the title fix: MIg620 to handle missing partitions fix: tolerate missing partition folders in 6.3 May 11, 2022
@ideoma ideoma changed the title fix: tolerate missing partition folders in 6.3 fix: tolerate missing partition folders in 6.2.1 -> 6.3 migration May 11, 2022
marregui
marregui previously approved these changes May 11, 2022
Copy link
Contributor

@marregui marregui left a comment

Choose a reason for hiding this comment

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

LGTM

@ideoma ideoma dismissed stale reviews from marregui and bluestreak01 via f524cc1 May 12, 2022 09:01
Copy link
Contributor

@marregui marregui left a comment

Choose a reason for hiding this comment

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

LGTM

@ideoma
Copy link
Collaborator Author

ideoma commented May 12, 2022

[PR Coverage check]

😍 pass : 29 / 32 (90.62%)

file detail

path covered line new line coverage
🔵 io/questdb/cairo/mig/Mig620.java 17 19 89.47%
🔵 io/questdb/std/FilesFacadeImpl.java 12 13 92.31%

@bluestreak01 bluestreak01 merged commit 8be0f63 into master May 12, 2022
@bluestreak01 bluestreak01 deleted the ap-migraion62-fix branch May 12, 2022 14:02
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.

None yet

3 participants