mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
Fix network logging test failures (#60334)
In #60297 we added some tests related to logging from the transport layer, but these tests failed occasionally since the cluster was kept alive between test invocations but the logging framework expected it only to be used for a single test. With this commit we reduce the scope of the internal test cluster to `TEST` to solve this problem. Closes #60321.
This commit is contained in:
parent
753fd4f6bc
commit
bbacad648a
@ -21,7 +21,6 @@ package org.elasticsearch.transport.netty4;
|
|||||||
|
|
||||||
import org.apache.logging.log4j.Level;
|
import org.apache.logging.log4j.Level;
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.lucene.util.LuceneTestCase;
|
|
||||||
import org.elasticsearch.ESNetty4IntegTestCase;
|
import org.elasticsearch.ESNetty4IntegTestCase;
|
||||||
import org.elasticsearch.action.admin.cluster.node.hotthreads.NodesHotThreadsRequest;
|
import org.elasticsearch.action.admin.cluster.node.hotthreads.NodesHotThreadsRequest;
|
||||||
import org.elasticsearch.common.logging.Loggers;
|
import org.elasticsearch.common.logging.Loggers;
|
||||||
@ -34,8 +33,7 @@ import org.elasticsearch.transport.TransportLogger;
|
|||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
@ESIntegTestCase.ClusterScope(numDataNodes = 2)
|
@ESIntegTestCase.ClusterScope(numDataNodes = 2, scope = ESIntegTestCase.Scope.TEST)
|
||||||
@LuceneTestCase.AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/60321")
|
|
||||||
public class ESLoggingHandlerIT extends ESNetty4IntegTestCase {
|
public class ESLoggingHandlerIT extends ESNetty4IntegTestCase {
|
||||||
|
|
||||||
private MockLogAppender appender;
|
private MockLogAppender appender;
|
||||||
|
@ -21,7 +21,6 @@ package org.elasticsearch.transport.nio;
|
|||||||
|
|
||||||
import org.apache.logging.log4j.Level;
|
import org.apache.logging.log4j.Level;
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.lucene.util.LuceneTestCase;
|
|
||||||
import org.elasticsearch.NioIntegTestCase;
|
import org.elasticsearch.NioIntegTestCase;
|
||||||
import org.elasticsearch.action.admin.cluster.node.hotthreads.NodesHotThreadsRequest;
|
import org.elasticsearch.action.admin.cluster.node.hotthreads.NodesHotThreadsRequest;
|
||||||
import org.elasticsearch.common.logging.Loggers;
|
import org.elasticsearch.common.logging.Loggers;
|
||||||
@ -34,8 +33,7 @@ import org.elasticsearch.transport.TransportLogger;
|
|||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
@ESIntegTestCase.ClusterScope(numDataNodes = 2)
|
@ESIntegTestCase.ClusterScope(numDataNodes = 2, scope = ESIntegTestCase.Scope.TEST)
|
||||||
@LuceneTestCase.AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/60321")
|
|
||||||
public class NioTransportLoggingIT extends NioIntegTestCase {
|
public class NioTransportLoggingIT extends NioIntegTestCase {
|
||||||
|
|
||||||
private MockLogAppender appender;
|
private MockLogAppender appender;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user