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

fixed #1432: complete the notify_ function #1455

Open
wants to merge 4 commits into
base: 4.1
Choose a base branch
from

Conversation

fjygf
Copy link

@fjygf fjygf commented Jul 4, 2023

Task Description

close #1432
When the user executes the start/defer/stop archive command, it simply changes the archive status.
The background task ObArchiveService needs to query the archive status periodically to actually start/defer/stop archive.
There is room for optimizing the time to start/defer/stop archive.

Solution Description

When in BEGINNING state, notify each log stream event of archive start.
When in SUSPENDING state, notify each log stream event of archive defer.
When in STOPPING state, notify each log stream event of archive stop.
1-Get all log stream leaders of the current tenant.
2-Wake up ObArchiveService via obrpc.

Passed Regressions

N/A

Upgrade Compatibility

N/A

Other Information

N/A

Release Note

N/A

@fjygf fjygf force-pushed the issue_1432 branch 2 times, most recently from 780e95a to e9e9de7 Compare July 12, 2023 04:01
@CLAassistant
Copy link

CLAassistant commented Aug 2, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@wxhwang wxhwang left a comment

Choose a reason for hiding this comment

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

LGTM

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

4 participants