satishd commented on code in PR #14127:
URL: https://github.com/apache/kafka/pull/14127#discussion_r1305454009
##########
clients/src/main/java/org/apache/kafka/common/errors/ResourceNotReadyException.java:
##########
@@ -0,0 +1,14 @@
+package org.apache.kafka.common.errors;
+
+public class ResourceNotReadyException extends RetriableException {
Review Comment:
+1 on not introducing a new error as it requires a KIP.
We can reuse the closest possible error for now.
`ReplicaNotAvailableException` triggers refreshing a metadata update from the
client as it is kind of an `InvalidMetadataException` which may generate a lot
of metadata calls. It may be good to return an exception that does not call for
metadata refresh.
We can introduce a new error as a separate KIP later and handle it
appropriately.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]