You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "CalvinConfluent (via GitHub)" <gi...@apache.org> on 2023/08/01 18:38:30 UTC
[GitHub] [kafka] CalvinConfluent opened a new pull request, #14138: Fix a race when query isUnderMinIsr
CalvinConfluent opened a new pull request, #14138:
URL: https://github.com/apache/kafka/pull/14138
When the leader becomes the follower, we first remove the ISR and then reset the leader. If we call isUnderMinIsr in between, we will get an answer with true which is a race bug.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [kafka] jolshan commented on a diff in pull request #14138: Fix a race when query isUnderMinIsr
Posted by "jolshan (via GitHub)" <gi...@apache.org>.
jolshan commented on code in PR #14138:
URL: https://github.com/apache/kafka/pull/14138#discussion_r1290546194
##########
core/src/main/scala/kafka/cluster/Partition.scala:
##########
@@ -798,6 +803,12 @@ class Partition(val topicPartition: TopicPartition,
// to maintain the decision maker controller's epoch in the zookeeper path
controllerEpoch = partitionState.controllerEpoch
+ val isNewLeaderEpoch = partitionState.leaderEpoch > leaderEpoch
Review Comment:
Can we add a bit more detail in the description about why we moved this to be before updateAssignmentAndIsr.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [kafka] CalvinConfluent commented on pull request #14138: Fix a race when query isUnderMinIsr
Posted by "CalvinConfluent (via GitHub)" <gi...@apache.org>.
CalvinConfluent commented on PR #14138:
URL: https://github.com/apache/kafka/pull/14138#issuecomment-1668274095
@jolshan Can you help take a look?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [kafka] jolshan merged pull request #14138: Fix a race when query isUnderMinIsr
Posted by "jolshan (via GitHub)" <gi...@apache.org>.
jolshan merged PR #14138:
URL: https://github.com/apache/kafka/pull/14138
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org