Skip to content

Commit

Permalink
GG-27553 Too many caches can block discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Masharov committed Mar 27, 2020
1 parent 263a522 commit ca5458c
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
import org.apache.ignite.configuration.IgniteConfiguration;
import org.apache.ignite.testframework.ListeningTestLogger;
import org.apache.ignite.testframework.LogListener;
import org.apache.ignite.testframework.junits.WithSystemProperty;
import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
import org.junit.Test;

import static org.apache.ignite.IgniteSystemProperties.IGNITE_DISCOVERY_METRICS_QNT_WARN;

Expand Down Expand Up @@ -69,9 +67,9 @@ public class TcpDiscoveryMetricsWarnLogTest extends GridCommonAbstractTest {
*
* @throws Exception If any error occurs.
*/
@Test
@WithSystemProperty(key = IGNITE_DISCOVERY_METRICS_QNT_WARN, value = "20")
public void testMetricsWarningLog() throws Exception {
withSystemProperty(IGNITE_DISCOVERY_METRICS_QNT_WARN, "20");

testLog.warning("IGNITE_DISCOVERY_METRICS_QNT_WARN = "
+ System.getProperty(IGNITE_DISCOVERY_METRICS_QNT_WARN));

Expand Down Expand Up @@ -110,9 +108,9 @@ public void testMetricsWarningLog() throws Exception {
assertTrue(logLsnr2.check());
}

@Test
@WithSystemProperty(key = IGNITE_DISCOVERY_METRICS_QNT_WARN, value = "0")
public void testMetricsWarningLog0() throws Exception {
withSystemProperty(IGNITE_DISCOVERY_METRICS_QNT_WARN, "0");

testMetricsWarningLog();
}

Expand Down

0 comments on commit ca5458c

Please sign in to comment.