This is an automated email from the ASF dual-hosted git repository. jlli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push: new 2f19683470 Update log level to ERROR for HelixZNodeSizeLimitTest (#9208) 2f19683470 is described below commit 2f19683470c9011c0c56a3c2804fdcf9bc60abdf Author: Jialiang Li <j...@linkedin.com> AuthorDate: Sat Aug 13 10:35:56 2022 -0700 Update log level to ERROR for HelixZNodeSizeLimitTest (#9208) Co-authored-by: Jack Li(Analytics Engineering) <j...@jlli-mn1.linkedin.biz> --- .../pinot/integration/tests/HelixZNodeSizeLimitTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/HelixZNodeSizeLimitTest.java b/pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/HelixZNodeSizeLimitTest.java index c26a644592..d2df595941 100644 --- a/pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/HelixZNodeSizeLimitTest.java +++ b/pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/HelixZNodeSizeLimitTest.java @@ -22,6 +22,8 @@ package org.apache.pinot.integration.tests; import com.google.common.collect.ImmutableMap; import java.util.Map; import org.apache.helix.zookeeper.constant.ZkSystemPropertyKeys; +import org.apache.logging.log4j.Level; +import org.apache.logging.log4j.core.config.Configurator; import org.apache.pinot.common.utils.helix.HelixHelper; import org.apache.pinot.util.TestUtils; import org.testng.Assert; @@ -45,6 +47,13 @@ public class HelixZNodeSizeLimitTest extends BaseClusterIntegrationTest { // src/main/java/org/apache/helix/zookeeper/zkclient/ZkClient.java#L105 // The below line gets executed before ZkClient.WRITE_SIZE_LIMIT is created System.setProperty(ZkSystemPropertyKeys.JUTE_MAXBUFFER, "4000000"); + + // Set log level to ERROR, as there are too many warning messages printed if warn level is used like below: + // 20:07:11.616 WARN [TopStateHandoffReportStage] [HelixController-pipeline-default-HelixZNodeSizeLimitTest + // -(b90d2ed3_DEFAULT)] Event b90d2ed3_DEFAULT : Cannot confirm top state missing start time. + // Use the current system time as the start time. + Configurator.setAllLevels("", Level.ERROR); + TestUtils.ensureDirectoriesExistAndEmpty(_tempDir); // Start Zookeeper @@ -63,6 +72,9 @@ public class HelixZNodeSizeLimitTest extends BaseClusterIntegrationTest { stopBroker(); stopController(); stopZk(); + + // Reset log level back to warn. + Configurator.setAllLevels("", Level.WARN); } @Test --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org