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: fix kafka wal logs deletion and recovery logic #1048

Merged
merged 6 commits into from
Jul 10, 2023

Conversation

Rachelint
Copy link
Contributor

Rationale

In the old kafka logs deletion and recovery logic, some conercases leading to logs can never be cleaned up.

Detailed Changes

  • Fix the logs deletion logic.
  • Fix recovery logic.

Test Plan

Test manually.

@Rachelint Rachelint force-pushed the refactor-kafka-wal-delete-and-recover branch from d00c5a8 to e42cf52 Compare July 5, 2023 05:38
wal/src/kv_encoder.rs Outdated Show resolved Hide resolved
wal/src/kv_encoder.rs Outdated Show resolved Hide resolved
wal/src/message_queue_impl/namespace.rs Outdated Show resolved Hide resolved
@Rachelint Rachelint changed the title fix: refactor kafka wal logs deletion and recovery logic fix: fix kafka wal logs deletion and recovery logic Jul 5, 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

@ShiKaiWi ShiKaiWi merged commit 7c6ef04 into apache:main Jul 10, 2023
Rachelint added a commit to Rachelint/ceresdb that referenced this pull request Jul 11, 2023
## Rationale
In the old kafka logs deletion and recovery logic, some conercases
leading to logs can never be cleaned up.

## Detailed Changes
- Fix the logs deletion logic.
- Fix recovery logic.

## Test Plan
Test manually.
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.

3 participants