SAY-5 opened a new pull request, #4504:
URL: https://github.com/apache/logging-log4j2/pull/4504

   Fixes #4480.
   
   `MemoryMappedFileAppender.Builder.build()` passed the configured 
`immediateFlush` to the manager but a literal `false` to the appender, so 
`getImmediateFlush()` was always `false` and the mapped buffer was only forced 
at the end of a batch; it now passes `isImmediateFlush()` like the other file 
appenders. Since the builder default is `true`, as documented, a 
`MemoryMappedFile` without the attribute now also forces after each event. The 
new test in `MemoryMappedFileAppenderTest` adds three imports, so the expected 
line numbers in `testMemMapLocation` moved by three.
   
   ## Checklist
   
   * [x] Base your changes on `2.x` branch if you are targeting Log4j 2; use 
`main` otherwise
   * [ ] `./mvnw verify` succeeds ([the build 
instructions](https://logging.apache.org/log4j/2.x/development.html#building)): 
I ran the `MemoryMappedFile`, file appender and GC-free tests of 
`log4j-core-test` and `spotless:check` locally, not the full build
   * [x] Non-trivial changes contain an entry file in the 
`src/changelog/.2.x.x` directory
   * [x] Tests are provided
   


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

Reply via email to