You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2020/12/09 18:47:59 UTC

[GitHub] [kafka] hachikuji commented on pull request #9621: KAFKA-9892: Producer state snapshot needs to be forced to disk

hachikuji commented on pull request #9621:
URL: https://github.com/apache/kafka/pull/9621#issuecomment-741974252


   @bristy Thanks for the patch. I'd suggest changing to this:
   ```java
       try {
         fileChannel.write(buffer)
         fileChannel.force(true)
       } finally {
         fileChannel.close()
       }
   ```
   If you don't have time to get back to this, I can push a commit.


----------------------------------------------------------------
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.

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