You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pinot.apache.org by GitBox <gi...@apache.org> on 2019/01/28 17:55:19 UTC

[GitHub] npawar commented on a change in pull request #3749: Fix SegmentStatusCheckerIntegrationTest setup timings

npawar commented on a change in pull request #3749: Fix SegmentStatusCheckerIntegrationTest setup timings
URL: https://github.com/apache/incubator-pinot/pull/3749#discussion_r251525488
 
 

 ##########
 File path: pinot-controller/src/main/java/org/apache/pinot/controller/helix/SegmentStatusChecker.java
 ##########
 @@ -95,11 +94,21 @@ protected void preprocess() {
 
   @Override
   protected void processTable(String tableNameWithType) {
-    updateSegmentMetrics(tableNameWithType);
+    try {
+      updateSegmentMetrics(tableNameWithType);
+      _numTablesProcessed ++;
+    } catch (Exception e) {
+      LOGGER.error("Caught exception while updating segment status for table {}", tableNameWithType, e);
+
+      // Remove the metric for this table
+      resetTableMetrics(tableNameWithType);
+    }
   }
 
   @Override
   protected void postprocess() {
+    _metricsRegistry.setValueOfGlobalGauge(ControllerGauge.SEGMENT_STATUS_CHECKER_NUM_TABLES_PROCESSED,
 
 Review comment:
   Changed the PR according to this suggestion

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pinot.apache.org
For additional commands, e-mail: dev-help@pinot.apache.org