vamossagar12 opened a new pull request, #14051:
URL: https://github.com/apache/kafka/pull/14051

   When deleting topics, we'll first clear all the remoteReplicaMap when 
stopPartitions 
[here](https://github.com/apache/kafka/blob/2999168cde37142ae3a2377fe939d6b581e692b8/core/src/main/scala/kafka/server/ReplicaManager.scala#L554).
 But this time, 
t[here](https://github.com/apache/kafka/blob/2999168cde37142ae3a2377fe939d6b581e692b8/core/src/main/scala/kafka/cluster/Partition.scala#L1001)
 might be fetch request coming from follower, and try to check if the replica 
is eligible to be added into ISR here. At this moment, NPE will be thrown. 
Although it's fine since this topic is already deleted, it'd be better to avoid 
it happen.


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to