You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2024/07/22 14:17:00 UTC
[jira] [Created] (KAFKA-17181) Fix possible partial write in writing snapshot (ProducerStateManager)
Chia-Ping Tsai created KAFKA-17181:
--------------------------------------
Summary: 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
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)