Skip to content

Conversation

@gaurav-narula
Copy link
Contributor

@gaurav-narula gaurav-narula commented Oct 9, 2025

Stores the existing values for both the fields in a local variable for
logging.

Reviewers: Omnia Ibrahim o.g.h.ibrahim@gmail.com

Stores the existing values for both the fields in a local variable for
logging.
@github-actions github-actions bot added triage PRs from the community core Kafka Broker small Small PRs and removed triage PRs from the community labels Oct 9, 2025
Copy link
Contributor

@OmniaGM OmniaGM left a comment

Choose a reason for hiding this comment

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

Nice catch thanks for the fix. Will wait for the pipeline to pass first.

@OmniaGM OmniaGM merged commit cedf1c0 into apache:trunk Oct 9, 2025
24 checks passed
Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@gaurav-narula nice find and sorry for late review. Just one small comment from me

s"Previous leader $prevLeaderReplicaIdOpt and previous leader epoch was $prevLeaderEpoch.")
} else {
stateChangeLogger.info(s"Skipped the become-follower state change for $topicPartition with topic id $topicId, " +
s"partition registration $partitionRegistration and isNew=$isNew since it is already a follower with leader epoch $leaderEpoch.")
Copy link
Member

Choose a reason for hiding this comment

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

Should this leaderEpoch also be replaced by prevLeaderEpoch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed! On a further look, it seems both the regressions were introduced with https://github.com/apache/kafka/pull/14138/files. I'll raise another PR.

gaurav-narula added a commit to gaurav-narula/kafka that referenced this pull request Oct 9, 2025
We missed a branch in apache#20671.

This PR handles the else branch where we log about skipping the follower
state change.

Also updated the doc for the method as it was out of date.
chia7712 pushed a commit that referenced this pull request Oct 10, 2025
We missed a branch in #20671.

This PR handles the else branch where we log about skipping the follower
state change.

Also updated the doc for the method as it was out of date.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
eduwercamacaro pushed a commit to littlehorse-enterprises/kafka that referenced this pull request Nov 12, 2025
…20671)

Stores the existing values for both the fields in a local variable for
logging.

Reviewers: Omnia Ibrahim <o.g.h.ibrahim@gmail.com>
eduwercamacaro pushed a commit to littlehorse-enterprises/kafka that referenced this pull request Nov 12, 2025
We missed a branch in apache#20671.

This PR handles the else branch where we log about skipping the follower
state change.

Also updated the doc for the method as it was out of date.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
shashankhs11 pushed a commit to shashankhs11/kafka that referenced this pull request Dec 15, 2025
…20671)

Stores the existing values for both the fields in a local variable for
logging.

Reviewers: Omnia Ibrahim <o.g.h.ibrahim@gmail.com>
shashankhs11 pushed a commit to shashankhs11/kafka that referenced this pull request Dec 15, 2025
We missed a branch in apache#20671.

This PR handles the else branch where we log about skipping the follower
state change.

Also updated the doc for the method as it was out of date.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Kafka Broker small Small PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants