-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
log-backup: added manual flush RPCs #18027
Conversation
a4a5526
to
296b139
Compare
/test pull-unit-test |
Signed-off-by: hillium <yujuncen@pingcap.com> Signed-off-by: hillium <yu745514916@live.com>
Signed-off-by: hillium <yu745514916@live.com>
Signed-off-by: hillium <yu745514916@live.com>
Signed-off-by: hillium <yu745514916@live.com>
Signed-off-by: hillium <yu745514916@live.com>
Signed-off-by: hillium <yu745514916@live.com>
Signed-off-by: hillium <yu745514916@live.com>
296b139
to
60c5410
Compare
@@ -857,20 +865,36 @@ where | |||
} | |||
} | |||
|
|||
pub fn on_force_flush(&self, task: String) { | |||
pub fn on_force_flush(&self, task: TaskSelectorRef<'_>, sender: Sender<FlushResult>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to prevent too much force flush here if the callers abuse it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now we don't need to care this. Because only 1 task is allowed.
}), | ||
min_ts: mts, | ||
}) | ||
.await | ||
}) | ||
} | ||
|
||
fn on_exec_flush(&mut self, task: String, resolved: ResolvedRegions) { | ||
fn on_exec_flush(&mut self, task: String, resolved: ResolvedRegions, cb: Sender<FlushResult>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where can we know there is force flush occurs? from tikv log or metrics?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now we can get the number of ForceFlush
tasks by the metric tikv_log_backup_interal_actor_acting_duration_sec_count
.
} | ||
}))); | ||
let fut = self.do_flush(task.clone(), resolved); | ||
let syncer = self.checkpoint_mgr.make_syncer(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can make syncer
in the on_force_flush
to avoid the normal flush execution path.
@BornChanger: adding LGTM is restricted to approvers and reviewers in OWNERS files. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Signed-off-by: hillium <yu745514916@live.com>
Signed-off-by: hillium <yu745514916@live.com>
Signed-off-by: hillium <yu745514916@live.com>
Signed-off-by: hillium <yu745514916@live.com>
Signed-off-by: 山岚 <36239017+YuJuncen@users.noreply.github.com>
|
@YuJuncen: Your PR was out of date, I have automatically updated it for you. If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
Signed-off-by: hillium <yu745514916@live.com>
145a002
to
469ab2d
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 3pointer, BornChanger, iosmanthus, Leavrth The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What is changed and how it works?
Issue Number: Close #18026
What's Changed:
Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Side effects
Release note