KAFKA-18264: Remove NotLeaderForPartitionException#18211
KAFKA-18264: Remove NotLeaderForPartitionException#18211chia7712 merged 8 commits intoapache:trunkfrom
Conversation
|
Should we mention it's removed in upgrade.html? |
I'm not quite sure. Should we add it to the 4.0 version of upgrade.html? @chia7712 |
yes, please :) |
Thanks! Updated it. |
| <li>The <code>kafka.common.requests.DescribeLogDirsResponse.ReplicaInfo</code> class was removed. Please use the <code>kafka.clients.admin.DescribeLogDirsResult.descriptions()</code> class | ||
| and <code>kafka.clients.admin.DescribeLogDirsResult.allDescriptions()</code>instead. | ||
| </li> | ||
| <li>The <code>kafka.common.errors.NotLeaderForPartitionException</code> class was removed. Please use the <code>kafka.common.errors.NotLeaderOrFollowerException</code> class instead. |
There was a problem hiding this comment.
trunk is in 4.1.0 now, so please create the new section :)
There was a problem hiding this comment.
trunk is in 4.1.0 now, so please create the new section :)
Thanks! Updated it.
There was a problem hiding this comment.
It seems we have the room to push more cleanup to 4.0.0, so could you please move it back to 4.0.0 section? I will backport this to 4.0 branch
There was a problem hiding this comment.
It seems we have the room to push more cleanup to 4.0.0, so could you please move it back to 4.0.0 section? I will backport this to 4.0 branch
Sure.I will move it back.
| <ul> | ||
| <li><b>Common</b> | ||
| <ul> | ||
| <li>The <code>kafka.common.errors.NotLeaderForPartitionException</code> class was removed. Please use the <code>kafka.common.errors.NotLeaderOrFollowerException</code> class instead. |
There was a problem hiding this comment.
Let's use the full class names org.apache.kafka.common.errors.
Also users should not have to use NotLeaderOrFollowerException. Instead we can say something like org.apache.kafka.common.errors.NotLeaderOrFollowerException is returned if a request could not be processed because the broker is not the leader or follower for a topic partition.
There was a problem hiding this comment.
Let's use the full class names
org.apache.kafka.common.errors.Also users should not have to use
NotLeaderOrFollowerException. Instead we can say something likeorg.apache.kafka.common.errors.NotLeaderOrFollowerExceptionis returned if a request could not be processed because the broker is not the leader or follower for a topic partition.
Sounds good.Thanks for review! Addressed it.
Reviewers: Yung <yungyung7654321@gmail.com>, Mickael Maison <mickael.maison@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
…e-old-protocol-versions * apache-github/trunk: (25 commits) KAFKA-18270: FindCoordinator v0 incorrectly tagged as deprecated (apache#18262) KAFKA-18284: Add group coordinator records for Streams rebalance protocol (apache#18228) MINOR: Fix flaky state updater test (apache#18253) MINOR: improve StreamsResetter logging (apache#18237) KAFKA-18227: Ensure v2 partitions are not added to last transaction during upgrade (apache#18176) Add IT for share consumer with duration base offet auto reset (apache#18251) KAFKA-18283: Add StreamsGroupDescribe RPC definitions (apache#18230) KAFKA-18241: add docs check to CI (apache#18183) KAFKA-18223 Improve flaky test report (apache#18212) MINOR Remove triage label in nightly job (apache#18147) KAFKA-18294 Remove deprecated SourceTask#commitRecord (apache#18260) KAFKA-18264 Remove NotLeaderForPartitionException (apache#18211) KAFKA-13722: Refactor SerdeGetter (apache#18242) KAFKA-18094 Remove deprecated TopicListing(String, Boolean) (apache#18248) KAFKA-18282: Add StreamsGroupHeartbeat RPC definitions (apache#18227) KAFKA-18026: KIP-1112 migrate KTableSuppressProcessorSupplier (apache#18150) KAFKA-18026: transition KTable#filter impl to use processor wrapper (apache#18205) KAFKA-18293 Remove `org.apache.kafka.common.security.oauthbearer.secured.OAuthBearerLoginCallbackHandler` and `org.apache.kafka.common.security.oauthbearer.secured.OAuthBearerValidatorCallbackHandler` (apache#18244) MINOR: add assertion about groupEpoch and targetAssignmentEpoch to testConsumerGroups (apache#18203) KAFKA-17960; PlaintextAdminIntegrationTest.testConsumerGroups fails with CONSUMER group protocol (apache#18234) ...
Reviewers: Yung <yungyung7654321@gmail.com>, Mickael Maison <mickael.maison@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
jira: https://issues.apache.org/jira/browse/KAFKA-18264
As title.
Committer Checklist (excluded from commit message)