KAFKA-2120#320
Conversation
|
@MayureshGharat There's a typo here: Also, it would be nice to be detailed about the error by informing the value and the threshold that was violated: In this case, the exception is more of a side effect of this function -- and so, better to be documented in the Finally, this |
|
Since the purpose of this PR is just a follow-up cleanup of KAFKA-2120, I am fine either addressing @eribeiro 's comments in another MINOR PR or in this PR as well if @MayureshGharat would like to do so. |
|
@guozhangwang I will make the change for @throw and also the threshold message in this PR. I am not sure if we should change the method name. I had discussed this with Joel and we had comeup with that name. Its little verbose but it kind of explains what might happen. Does that sound good ? |
|
I am OK with the current function name too, it is up to you for how to address the comments :) |
|
@eribeiro As per http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html#throwstag, the purpose of the @throws tag is to indicate which exceptions the programmer must catch (for checked exceptions) or might want to catch (for unchecked exceptions). (It is considered poor programming practice to include unchecked exceptions in the throws clause.) |
|
@MayureshGharat +1 about your comments. :) After posting the comment, I ended up in the http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html page too, so I totally see the point of |
|
LGTM, thanks @MayureshGharat |
apache#320) * add individual end quorum request * use retry backoff * start election immediately if top on list
apache#320) * add individual end quorum request * use retry backoff * start election immediately if top on list
apache#320) * add individual end quorum request * use retry backoff * start election immediately if top on list
…fault` and `quota.consumer.default` configurations (apache#10427)" (apache#320) TICKET = LI_DESCRIPTION = We currently need the quota.producer.default and quota.consumer.default in kafka-rest, and that is read from ZK node /cluster_configs. This node is written to by the kafka-server. If the config is mising, kafka-rest currently fails with an exception. EXIT_CRITERIA = Once we have migrated Kafka server to write dynamic config to zk /cluster_configs node, or removed the check in kafka-rest for these 2 config properties, we can remove this commit. This reverts commit ff3b2d6.
…fault` and `quota.consumer.default` configurations (apache#10427)" (apache#320) TICKET = LI_DESCRIPTION = We currently need the quota.producer.default and quota.consumer.default in kafka-rest, and that is read from ZK node /cluster_configs. This node is written to by the kafka-server. If the config is mising, kafka-rest currently fails with an exception. EXIT_CRITERIA = Once we have migrated Kafka server to write dynamic config to zk /cluster_configs node, or removed the check in kafka-rest for these 2 config properties, we can remove this commit. This reverts commit ff3b2d6.
Trivial fix to get rid of unused statements in kafkaProducer.