[ 
https://issues.apache.org/jira/browse/KAFKA-16209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17949917#comment-17949917
 ] 

Yordan Pavlov commented on KAFKA-16209:
---------------------------------------

Hi guys [~goyarpit] [~showuon],
what is the state of this bug, I see the linked Github issue is marked as 
resolved, however as I commented there I am still experiencing the problem. 
From what I see in latest trunk code, snapshot is still set to null [at this 
point|https://github.com/apache/kafka/blob/trunk/storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java#L998].

> fetchSnapshot might return null if topic is created before v2.8
> ---------------------------------------------------------------
>
>                 Key: KAFKA-16209
>                 URL: https://issues.apache.org/jira/browse/KAFKA-16209
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 3.6.1
>            Reporter: Luke Chen
>            Assignee: Arpit Goyal
>            Priority: Major
>              Labels: newbie, newbie++
>             Fix For: 3.7.1, 3.8.0
>
>
> Remote log manager will fetch snapshot via ProducerStateManager 
> [here|https://github.com/apache/kafka/blob/trunk/storage/src/main/java/org/apache/kafka/storage/internals/log/ProducerStateManager.java#L608],
>  but the snapshot map might get nothing if the topic has no snapshot created, 
> ex: topics before v2.8. Need to fix it to avoid NPE.
> old PR: https://github.com/apache/kafka/pull/14615/



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to