Frederico Ferro Schuh created LOG4J2-1580:
---------------------------------------------
Summary: Log4j2 hangs when logging Unicode characters on appender
with buffer size 1
Key: LOG4J2-1580
URL: https://issues.apache.org/jira/browse/LOG4J2-1580
Project: Log4j 2
Issue Type: Bug
Components: Core
Environment: Linux CentOS 7
Reporter: Frederico Ferro Schuh
Priority: Minor
All loggers on application are AsyncLoggers.
Appender used was RollingRandomAccessFile.
Buffer size was set to 1, and when application attempted to log a string
containing Chinese characters, the current thread blocked and deadlocked on
call to Logger.info().
Though it may sound obvious that setting the buffer size to 1 would lead to
problems with Unicode characters, the expected behavior should never be a
deadlock.
An error message signaling the problem would be welcome.
Tested on Logj2 2.6.2, on Java 8.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]