-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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](catalog) fix bug that replica missing version cause query -214 error #9266
Conversation
// the replica is normal, then remove it from error replica ids | ||
errorReplicaIds.remove(replica.getId()); | ||
&& replica.getLastFailedVersion() < 0 | ||
&& replica.checkVersionCatchUp(partition.getVisibleVersion(), true)) { |
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 reviewer: Remove this part because we will update the replica version in updateCatalogAfterVisible()
, so no need to update here.
@@ -831,8 +831,12 @@ private static void handleRecoverTablet(ListMultimap<Long, Long> tabletRecoveryM | |||
// The absolute value is meaningless, as long as it is greater than 0. |
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.
delete or update the comment
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.
done
} | ||
} else if (replica.getVersion() >= partitionCommitInfo.getVersion()) { | ||
// the replica's version is larger than or equal to current transaction partition's version | ||
// the replica is normal, then remove it from error replica ids |
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.
This logic is not covered by updateCatalogAfterVisible.
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.
I added it back
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.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
…error (apache#9266) 1. Fix bug described in apache#9267 When report missing version replica, set last failed version to (replica version + 1) 2. Skip non-exist partition when handling transactions.
…error (apache#9266) 1. Fix bug described in apache#9267 When report missing version replica, set last failed version to (replica version + 1) 2. Skip non-exist partition when handling transactions.
…error (apache#9266) 1. Fix bug described in apache#9267 When report missing version replica, set last failed version to (replica version + 1) 2. Skip non-exist partition when handling transactions.
…error (apache#9266) 1. Fix bug described in apache#9267 When report missing version replica, set last failed version to (replica version + 1) 2. Skip non-exist partition when handling transactions.
Proposed changes
Issue Number: close #9267
Problem Summary:
This CL mainly change:
When report missing version replica, set last failed version to (replica version + 1)
Checklist(Required)
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...