HaitaoDeng opened a new issue, #1261:
URL: https://github.com/apache/logging-log4j2/issues/1261

   ## Description
   Fault injection: VM file handles are used up, and logs cannot be printed 
after the fault is rectified. IOException: Stream Closed.
   [A clear and concise description of what the bug is.]
   
   ## Configuration
   
   **Version:** [Log4j version]
   2.71.1
   **Operating system:** [OS and version]
   linux
   **JDK:** [JDK distribution and version]
   openjdk 1.8
   ## Logs
   Logs during fault injection:
   
![image](https://user-images.githubusercontent.com/31698031/216322128-9663949c-9f07-4b5f-a3df-ac307c42171f.png)
   Logs After Fault Recovery:
   
![image](https://user-images.githubusercontent.com/31698031/216322528-f534ed67-6255-429b-b6b2-b9d18f02a9bb.png)
   
   ```
   [Stacktraces, errors, etc. relevant applications logs.]
   ```
   
   ## Reproduction
   
   [An isolated test reproducing the test.
   JUnit tests similar to the ones in the code base are extremely appreciated.]
   
   
org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager#writeToDestination
   randomAccessFile should check whether The Stream is closed。
   
![image](https://user-images.githubusercontent.com/31698031/216323422-e0d06759-5848-4187-be55-8e81c977a29d.png)
   


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