ramanathan1504 commented on issue #3083:
URL: 
https://github.com/apache/logging-log4j2/issues/3083#issuecomment-6767069943

   @phanindra798, go ahead, one PR for all three, as @ppkarwasz said all 5.
   
   These managers write to `RandomAccessFile` directly, so the 
`RollingFileManager` `OutputStream` path does not apply. Null 
`randomAccessFile` = not open yet. No new constructors for the two random 
access managers.
   
   - `RollingRandomAccessFileManager`: already opens on null in 
`writeToDestination`. Skip the startup open and `defineAttributeView`. Add the 
parameter to the unreleased `maxRandomDelay` overload.
   - `RandomAccessFileManager`: same null check, also in `closeOutputStream`.
   - `MemoryMappedFileManager`: keep `byteBuffer` empty until the first write, 
then open and map in `remap()`. No new check in `write`.
   
   With `append="false"`, keep the old file until the first event, then empty 
it.
   
   Please test no file before the first event, no events at all, and 
`append="false"` with a longer old file. Add the attribute to `file.adoc` too.


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