xiaohui-sun commented on a change in pull request #4136: [TE] catch exceptions
in dimension exploration
URL: https://github.com/apache/incubator-pinot/pull/4136#discussion_r277434005
##########
File path:
thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/algorithm/DimensionWrapper.java
##########
@@ -198,15 +199,36 @@ public DetectionPipelineResult run() throws Exception {
List<MergedAnomalyResultDTO> anomalies = new ArrayList<>();
Map<String, Object> diagnostics = new HashMap<>();
Set<Long> lastTimeStamps = new HashSet<>();
- LOG.info("exploring {} metrics", nestedMetrics.size());
- for (MetricEntity metric : nestedMetrics) {
- for (Map<String, Object> properties : this.nestedProperties) {
- LOG.info("running detection for {}", metric.toString());
- DetectionPipelineResult intermediate = this.runNested(metric,
properties);
- lastTimeStamps.add(intermediate.getLastTimestamp());
- anomalies.addAll(intermediate.getAnomalies());
- diagnostics.put(metric.getUrn(), intermediate.getDiagnostics());
+ long totalNestedMetrics = nestedMetrics.size();
+ long successCount = 0; // record the number of successfully explored
dimensions
Review comment:
suggest to rename to "successNestedMetrics".
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]