You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "YordanPavlov (via GitHub)" <gi...@apache.org> on 2025/05/05 13:41:41 UTC

Re: [PR] KAFKA-16209 : fetchSnapshot might return null if topic is created before v2.8 [kafka]

YordanPavlov commented on PR #15444:
URL: https://github.com/apache/kafka/pull/15444#issuecomment-2851054615

   Hi @chiacyu @showuon 
   can you please explain how this fix prevents the NPE, since at this point:
   https://github.com/apache/kafka/blob/trunk/storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java#L998
   the Optional is again converted to null. The an NPE happens a bit latter:
   https://github.com/apache/kafka/blob/trunk/storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java#L1014


-- 
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-unsubscribe@kafka.apache.org

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