br: skip incomplete metakv#61734
Conversation
Signed-off-by: Jianjun Liao <jianjun.liao@outlook.com>
|
Hi @Leavrth. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions 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. |
|
@Leavrth: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #61734 +/- ##
================================================
+ Coverage 73.1141% 74.9112% +1.7971%
================================================
Files 1730 1746 +16
Lines 481167 482774 +1607
================================================
+ Hits 351801 361652 +9851
+ Misses 107845 98872 -8973
- Partials 21521 22250 +729
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
| // the meta kv may not be backed by log restore | ||
| if checkTableIDLost(tableId) { | ||
| if checkTableIdLost(tableId) { | ||
| log.Warn("the table is lost in the log backup storage, so that it can not be restored.", zap.Int64("table id", tableId)) |
There was a problem hiding this comment.
maybe use Info level? as this is expected, and maybe rephrase the log message, I feel like it might be a bit concerning to see this log if people don't have context
There was a problem hiding this comment.
Maybe the tableId is included in the --filter, and the user want to restore it. However, finally it is not restored.
| dbId, dbNameByDbId(dbId), restoredTs, restoreCommitTs, startTs) | ||
| } | ||
| // the meta kv may not be backed by log restore | ||
| if checkDBIdlost(dbId) { |
There was a problem hiding this comment.
actually do we need this check since it can lost for a reason? how about just keep the tracker check
| SnapshotBackupTs uint64 `protobuf:"varint,2,opt,name=snapshot_backup_ts,proto3"` | ||
| // TableIDs records the table IDs blocklist of the cluster running the log backup task. | ||
| // RewriteTs records the rewritten timestamp of the meta kvs in this PITR restore. | ||
| RewriteTs uint64 `protobuf:"varint,6,opt,name=rewrite_ts,proto3"` |
There was a problem hiding this comment.
hmm, what's the difference between RewriteTs and RestoreCommitTs
There was a problem hiding this comment.
RestoreCommitTs > RewriteTs
Therefore, RestoreCommitTs is newer than the timestamp of any kv that is restored by log restore.
Signed-off-by: Jianjun Liao <jianjun.liao@outlook.com>
|
/lgtm |
[LGTM Timeline notifier]Timeline:
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 3pointer, Tristan1900 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/unhold |
|
/cherrypick release-8.5-20250114-v8.5.0 |
|
@Tristan1900: new pull request created to branch DetailsIn 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 ti-community-infra/tichi repository. |
What problem does this PR solve?
Issue Number: close #61728 close #61731
Problem Summary:
the incomplete metakv cannot be restored
What changed and how does it work?
skip the incomplete metakv
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.