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

chore: cherry pick related prs to release-1.2.3 #1064

Merged
merged 5 commits into from
Jul 11, 2023

Conversation

Rachelint
Copy link
Contributor

Rationale

Cherry pick recovery related prs to release-1.2.3.

Detailed Changes

Cherry pick recovery related prs to release-1.2.3.

Test Plan

Has tested in main branch.

Rachelint and others added 5 commits July 11, 2023 15:03
## 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.
…ions of `Shard` (apache#1056)

## Rationale
Close apache#1053 

Now, write operations for shard will be performed parallelly in ceresdb
node(e.g. recover, alter tables in shard).
Obviously, those operations should be performed sequentially like what
about table.

## Detailed Changes
+ introduce `Shard` like `Table`.
+ make write operations for shard performing sequentially by adding a
mutex.

## Test Plan
Test manually.
## Rationale
Now when opening a fully flushed region, it may hang forever...
This pr fix this problem on wal level, but it is the problem in kafka
client that is planned to fix in later.

## Detailed Changes
See title.

## Test Plan
Test manually.
## Rationale
Now it will still scan logs from wal when no table datas needed to
replay, it should directly return actually.

## Detailed Changes
Add a fast path to return directly when no table datas needed to replay.

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

@Rachelint Rachelint merged commit c83bf66 into apache:release-1.2.3 Jul 11, 2023
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.

2 participants