You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by vi...@apache.org on 2020/10/30 05:33:40 UTC

[hudi] 10/14: [RFC-15] Fixing metrics printing to console which generates a lot of text.

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

vinoth pushed a commit to branch rfc-15
in repository https://gitbox.apache.org/repos/asf/hudi.git

commit 9e8025d98dcbbe756cb04a259d14b68f7368e7ee
Author: Prashant Wason <pw...@uber.com>
AuthorDate: Tue Oct 27 22:53:26 2020 -0700

    [RFC-15] Fixing metrics printing to console which generates a lot of text.
    
    Changed to using memory metrics.
---
 .../src/test/java/org/apache/hudi/metadata/TestHoodieMetadata.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hudi-client/src/test/java/org/apache/hudi/metadata/TestHoodieMetadata.java b/hudi-client/src/test/java/org/apache/hudi/metadata/TestHoodieMetadata.java
index e830054..3f8d4ca 100644
--- a/hudi-client/src/test/java/org/apache/hudi/metadata/TestHoodieMetadata.java
+++ b/hudi-client/src/test/java/org/apache/hudi/metadata/TestHoodieMetadata.java
@@ -63,6 +63,7 @@ import org.apache.hudi.config.HoodieStorageConfig;
 import org.apache.hudi.config.HoodieWriteConfig;
 import org.apache.hudi.exception.TableNotFoundException;
 import org.apache.hudi.index.HoodieIndex;
+import org.apache.hudi.metrics.Metrics;
 import org.apache.hudi.table.HoodieTable;
 import org.apache.hudi.testutils.HoodieClientTestHarness;
 import org.apache.log4j.LogManager;
@@ -784,7 +785,7 @@ public class TestHoodieMetadata extends HoodieClientTestHarness {
             .withEnableBackupForRemoteFileSystemView(false).build())
         .withIndexConfig(HoodieIndexConfig.newBuilder().withIndexType(HoodieIndex.IndexType.BLOOM).build())
         .withMetadataConfig(HoodieMetadataConfig.newBuilder().enable(useFileListingMetadata).build())
-        .withMetricsConfig(HoodieMetricsConfig.newBuilder().withReporterType("CONSOLE").on(enableMetrics)
+        .withMetricsConfig(HoodieMetricsConfig.newBuilder().on(enableMetrics)
                            .withExecutorMetrics(true).usePrefix("unit-test").build());
   }
 }