ijuma commented on a change in pull request #8579:
URL: https://github.com/apache/kafka/pull/8579#discussion_r445936549



##########
File path: core/src/main/scala/kafka/server/AbstractFetcherThread.scala
##########
@@ -382,6 +382,12 @@ abstract class AbstractFetcherThread(name: String,
                     "that the partition is being moved")
                   partitionsWithError += topicPartition
 
+                case Errors.UNKNOWN_TOPIC_OR_PARTITION =>
+                  warn(s"Receiving ${Errors.UNKNOWN_TOPIC_OR_PARTITION} from 
the leader for partition $topicPartition. " +
+                       s"This can happen transiently if the partition is being 
created or deleted. " +
+                       s"However, this is unexpected if it sustains.")

Review comment:
       Thanks for the update. I think the following reads a bit better and is a 
bit more consistent with the other messages:
   
   ```scala
   s"Received ${Errors.UNKNOWN_TOPIC_OR_PARTITION} from the leader for 
partition $topicPartition. " +
   "This error may be returned transiently when the partition is being created 
or deleted, but it is not " +
   "expected to persist.")
   ```




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to