-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
KAFKA-8056: Use automatic RPC generation in FindCoordinator #6408
Conversation
0fee38c
to
87d0e06
Compare
87d0e06
to
8fd090c
Compare
6ccb34d
to
ca9ec82
Compare
ca9ec82
to
46ddfb8
Compare
retest please |
retest this please |
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.
Thanks, looks good. Just a few minor comments.
clients/src/main/java/org/apache/kafka/common/requests/FindCoordinatorRequest.java
Outdated
Show resolved
Hide resolved
clients/src/main/java/org/apache/kafka/common/requests/FindCoordinatorResponse.java
Outdated
Show resolved
Hide resolved
clients/src/test/java/org/apache/kafka/clients/consumer/KafkaConsumerTest.java
Outdated
Show resolved
Hide resolved
clients/src/test/java/org/apache/kafka/clients/producer/internals/TransactionManagerTest.java
Outdated
Show resolved
Hide resolved
@@ -1179,8 +1180,18 @@ class KafkaApis(val requestChannel: RequestChannel, | |||
} | |||
|
|||
def createResponse(requestThrottleMs: Int): AbstractResponse = { | |||
def createFindCoordinatorResponse(error: Errors, node: Node): FindCoordinatorResponse = { |
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.
Could probably modify prepareResponse
to take the throttle time and remove this.
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.
The throttle time is only used in 2 places so I kept it this way. I'm happy to change it if you think that's really better
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.
No strong preference. Just a suggestion
aec23b8
to
17f1e3d
Compare
Thanks @hachikuji for the review. I've pushed an update to address your feedback. |
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 (assuming tests pass after rebasing).
retest this please |
|
@hachikuji I wonder if the rebase/push force confused Jenkins because this code is not in my branch, |
retest this please |
@mimaison I didn't see the errors when I checked out locally, so let's give jenkins another spin. |
4a9d629
to
25f2ac3
Compare
I hadn't actually rebased when I checked. I reproduced the error after doing so and pushed a fix. |
The test failure looks unrelated. I will go ahead and merge. |
Thank you! |
…s-hashcode * apache-github/trunk: KAFKA-8158: Add EntityType for Kafka RPC fields (apache#6503) MINOR: correctly parse version OffsetCommitResponse version < 3 KAFKA-8284: enable static membership on KStream (apache#6673) KAFKA-8304: Fix registration of Connect REST extensions (apache#6651) KAFKA-8275; Take throttling into account when choosing least loaded node (apache#6619) KAFKA-3522: Interactive Queries must return timestamped stores (apache#6661) MINOR: MetricsIntegrationTest should set StreamsConfig.STATE_DIR_CONFIG (apache#6687) MINOR: Remove unused field in `ListenerConnectionQuota` KAFKA-8131; Move --version implementation into CommandLineUtils (apache#6481) KAFKA-8056; Use automatic RPC generation for FindCoordinator (apache#6408) MINOR: Remove workarounds for lz4-java bug affecting byte buffers (apache#6679) KAFKA-7455: Support JmxTool to connect to a secured RMI port. (apache#5968) MINOR: Document improvement (apache#6682) MINOR: Fix ThrottledReplicaListValidator doc error. (apache#6537) KAFKA-8306; Initialize log end offset accurately when start offset is non-zero (apache#6652)
…6408) Reviewers: Jason Gustafson <jason@confluent.io>
Committer Checklist (excluded from commit message)