Skip to content

Commit

Permalink
ISPN-11532 Replace HotRod worker thread pool
Browse files Browse the repository at this point in the history
* Revert test change as the netty event loop is no longer replaced
  • Loading branch information
wburns authored and danberindei committed May 20, 2020
1 parent f529157 commit e45e24f
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -6,6 +6,7 @@
import org.apache.logging.log4j.core.layout.PatternLayout;
import org.infinispan.commons.test.skip.StringLogAppender;
import org.infinispan.server.hotrod.HotRodSingleNodeTest;
import org.infinispan.commons.test.TestResourceTracker;
import org.testng.annotations.Test;

/**
Expand All @@ -15,12 +16,14 @@
public class HotRodAccessLoggingTest extends HotRodSingleNodeTest {
public static final String LOG_FORMAT = "%X{address} %X{user} [%d{dd/MMM/yyyy:HH:mm:ss Z}] \"%X{method} %m %X{protocol}\" %X{status} %X{requestSize} %X{responseSize} %X{duration}";
StringLogAppender logAppender;
private String testShortName;

@Override
protected void setup() throws Exception {
testShortName = TestResourceTracker.getCurrentTestShortName();
logAppender = new StringLogAppender("org.infinispan.HOTROD_ACCESS_LOG",
Level.TRACE,
t -> t.getName().startsWith("non-blocking-thread"),
t -> t.getName().startsWith("HotRod-" + testShortName + "-ServerIO"),
PatternLayout.newBuilder().withPattern(LOG_FORMAT).build());
logAppender.install();
super.setup();
Expand Down

0 comments on commit e45e24f

Please sign in to comment.