You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by ak...@apache.org on 2019/03/25 22:33:01 UTC

[incubator-pinot] branch master updated: [TE] Set anomaly duration upper limit to 7 days (#4015)

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

akshayrai09 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new ccb8d58  [TE] Set anomaly duration upper limit to 7 days (#4015)
ccb8d58 is described below

commit ccb8d585786f7ca7d06449138e3415028f112c78
Author: Akshay Rai <ak...@gmail.com>
AuthorDate: Mon Mar 25 15:32:56 2019 -0700

    [TE] Set anomaly duration upper limit to 7 days (#4015)
---
 thirdeye/run-frontend.sh                              |   2 +-
 thirdeye/thirdeye-pinot/config/h2db.mv.db             | Bin 0 -> 2330624 bytes
 .../thirdeye/detection/algorithm/MergeWrapper.java    |   2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/thirdeye/run-frontend.sh b/thirdeye/run-frontend.sh
index 34e37c4..3de7412 100755
--- a/thirdeye/run-frontend.sh
+++ b/thirdeye/run-frontend.sh
@@ -4,5 +4,5 @@ echo "Launching ThirdEye Dashboard in demo mode"
 echo "*******************************************************"
 
 cd thirdeye-pinot
-java -cp "./target/thirdeye-pinot-1.0-SNAPSHOT.jar" com.linkedin.thirdeye.dashboard.ThirdEyeDashboardApplication "./config"
+java -cp "./target/thirdeye-pinot-1.0-SNAPSHOT.jar" org.apache.pinot.thirdeye.dashboard.ThirdEyeDashboardApplication "./config"
 cd ..
diff --git a/thirdeye/thirdeye-pinot/config/h2db.mv.db b/thirdeye/thirdeye-pinot/config/h2db.mv.db
new file mode 100644
index 0000000..b4dccd7
Binary files /dev/null and b/thirdeye/thirdeye-pinot/config/h2db.mv.db differ
diff --git a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/algorithm/MergeWrapper.java b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/algorithm/MergeWrapper.java
index e2a3090..34cff3c 100644
--- a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/algorithm/MergeWrapper.java
+++ b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/algorithm/MergeWrapper.java
@@ -87,7 +87,7 @@ public class MergeWrapper extends DetectionPipeline {
     super(provider, config, startTime, endTime);
 
     this.maxGap = MapUtils.getLongValue(config.getProperties(), "maxGap", TimeUnit.HOURS.toMillis(2));
-    this.maxDuration = MapUtils.getLongValue(config.getProperties(), "maxDuration", Long.MAX_VALUE);
+    this.maxDuration = MapUtils.getLongValue(config.getProperties(), "maxDuration", TimeUnit.DAYS.toMillis(7));
     Preconditions.checkArgument(this.maxDuration > 0 , "Max duration must be a positive number");
     this.slice = new AnomalySlice().withStart(startTime).withEnd(endTime);
     this.nestedProperties = new ArrayList<>();


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