You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2022/09/13 06:52:34 UTC

[logging-log4j2] branch release-2.x updated: Increase `EncodingListAppender` buffer size

This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new 8e34592cb4 Increase `EncodingListAppender` buffer size
8e34592cb4 is described below

commit 8e34592cb4f89b7eee95ab9a1ecdfe4821156e8d
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Tue Sep 13 08:51:35 2022 +0200

    Increase `EncodingListAppender` buffer size
---
 .../org/apache/logging/log4j/test/appender/EncodingListAppender.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/test/appender/EncodingListAppender.java b/log4j-core/src/test/java/org/apache/logging/log4j/test/appender/EncodingListAppender.java
index 680645aee6..698e6ff279 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/test/appender/EncodingListAppender.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/test/appender/EncodingListAppender.java
@@ -43,7 +43,7 @@ public class EncodingListAppender extends ListAppender {
 
     private static class Destination implements ByteBufferDestination {
         // JUnit 5 stack traces can start to get looooong
-        ByteBuffer byteBuffer = ByteBuffer.wrap(new byte[8192]);
+        ByteBuffer byteBuffer = ByteBuffer.wrap(new byte[16384]);
 
         @Override
         public ByteBuffer getByteBuffer() {
@@ -52,7 +52,7 @@ public class EncodingListAppender extends ListAppender {
 
         @Override
         public ByteBuffer drain(final ByteBuffer buf) {
-            throw new IllegalStateException("Unexpected message larger than 4096 bytes");
+            throw new IllegalStateException("Unexpected message larger than 16384 bytes");
         }
 
         @Override