You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2025/05/19 17:05:00 UTC

[jira] [Created] (KAFKA-19314) Remove unnecessary code of closing snapshotWriter

Chia-Ping Tsai created KAFKA-19314:
--------------------------------------

             Summary: Remove unnecessary code of closing snapshotWriter
                 Key: KAFKA-19314
                 URL: https://issues.apache.org/jira/browse/KAFKA-19314
             Project: Kafka
          Issue Type: Improvement
            Reporter: Chia-Ping Tsai
            Assignee: Chia-Ping Tsai


see https://github.com/apache/kafka/blob/cff10e654149ed2d4924235a15156d4bc0bf7b4a/metadata/src/main/java/org/apache/kafka/image/publisher/SnapshotEmitter.java#L161

`snapshotWriter` is already closed in closing `writer`, so the closing `snapshotWriter` is redundant.



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