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: obkv wal open #1117

Merged
merged 4 commits into from
Jul 31, 2023
Merged

fix: obkv wal open #1117

merged 4 commits into from
Jul 31, 2023

Conversation

Rachelint
Copy link
Contributor

Rationale

In some cases(such as Manifest::do_snapshot), actual_next_sequence maybe less than start_sequence, and it will check this then return error in OBKV WAl.

In this pr, I refactor this open logic.

Detailed Changes

Refactor wal open logic to allow actual_next_sequence less than start_sequence.

Test Plan

Test by exist tests.

@jiacai2050 jiacai2050 self-requested a review July 28, 2023 09:33
wal/src/kv_encoder.rs Outdated Show resolved Hide resolved
wal/src/rocks_impl/manager.rs Show resolved Hide resolved
@ShiKaiWi ShiKaiWi changed the title fix: fix obkv wal open fix: obkv wal open Jul 28, 2023
Copy link
Member

@ShiKaiWi ShiKaiWi left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jiacai2050 jiacai2050 left a comment

Choose a reason for hiding this comment

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

LGTM

@jiacai2050 jiacai2050 merged commit 5cc2541 into apache:main Jul 31, 2023
6 checks passed
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