wenbingshen opened a new pull request, #3988: URL: https://github.com/apache/bookkeeper/pull/3988
### Motivation In Journal, we process `ForceWriteRequest` with batch as the smallest unit. When we rotate a Journal File, in the forceWriteRequests queue, we may contain a ForceWriteRequest of an old file, and shouldClose is true, and the last ForceWriteRequest in the queue is created by the new Jouranl file. When we batch process fwr, we only sync the last ForceWriteRequest to the disk, so that we can flash the previous fwr data of the file to the disk together. But for old files, when we process the fwr response, we will still process `closeFileIfNecessary`. Here we also sync the Journal files that are waiting for close, but here, we do not update `JournalSyncStats`. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
