[ https://issues.apache.org/jira/browse/KAFKA-17181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17867767#comment-17867767 ]
Ming-Yen Chung commented on KAFKA-17181: ---------------------------------------- Hi Chia-Ping, could you assign this ticket to me? > Fix possible partial write in writing snapshot (ProducerStateManager) > --------------------------------------------------------------------- > > Key: KAFKA-17181 > URL: https://issues.apache.org/jira/browse/KAFKA-17181 > Project: Kafka > Issue Type: Bug > Reporter: Chia-Ping Tsai > Assignee: Chia-Ping Tsai > Priority: Minor > > ProducerStateManager [0] does not loop `fileChannel.write(buffer)`, and so it > may cause partial write. We should use `Utils.writeFully` instead > [0] > https://github.com/apache/kafka/blob/90b779b7bb8b813e52ea21ce88c209e71b475ec9/storage/src/main/java/org/apache/kafka/storage/internals/log/ProducerStateManager.java#L720 -- This message was sent by Atlassian Jira (v8.20.10#820010)