You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Frederico Ferro Schuh (JIRA)" <ji...@apache.org> on 2016/09/13 10:37:21 UTC
[jira] [Created] (LOG4J2-1580) Log4j2 hangs when logging Unicode
characters on appender with buffer size 1
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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org