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

feat: make rocksdb wal compatible with other distributed implementation #460

Conversation

Rachelint
Copy link
Contributor

Which issue does this PR close?

Closes #

Rationale for this change

Now, If you write log with a not default region id in key, you will be unable to recover it when you restart the database(use a rocksdb based wal). It make no sense, so we should adjust the recover process in rocksdb based wal.

What changes are included in this PR?

Adjust the recover process in rocksdb based wal.

Are there any user-facing changes?

None.

How does this change test

Test by ut.

@Rachelint Rachelint force-pushed the merge-distributed-compatible-rocksdb-wal-to-main branch from 92c8324 to 33b4be7 Compare December 7, 2022 11:20
wal/src/manager.rs Outdated Show resolved Hide resolved
wal/src/rocks_impl/manager.rs Outdated Show resolved Hide resolved
wal/src/rocks_impl/manager.rs Outdated Show resolved Hide resolved
wal/src/rocks_impl/manager.rs Outdated Show resolved Hide resolved
@Rachelint Rachelint force-pushed the merge-distributed-compatible-rocksdb-wal-to-main branch from a9161bb to 318e92c Compare December 7, 2022 11:49
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

@ShiKaiWi ShiKaiWi merged commit b023098 into apache:main Dec 7, 2022
chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
…on (apache#460)

* modify wal on rocksdb to be compatible with other distributed implementations.

* address CR.
@Rachelint Rachelint deleted the merge-distributed-compatible-rocksdb-wal-to-main branch May 27, 2023 12:19
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

2 participants