apoorvmittal10 commented on code in PR #16842:
URL: https://github.com/apache/kafka/pull/16842#discussion_r1819582817


##########
core/src/main/java/kafka/server/share/SharePartitionManager.java:
##########
@@ -617,22 +650,35 @@ private void maybeCompleteInitializationWithException(
             return;
         }
 
+        // Remove the partition from the cache as it's failed to initialize.

Review Comment:
   `LeaderNotAvailableException` is an internal exception from SharePartition 
to SharePartitionManager which can occur only when SharePartition is in process 
of initialization and not yet complete. Hence fo that period just keep the 
requests in purgatory.



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

Reply via email to