Skip to content

Commit

Permalink
Fixed scroll size setting
Browse files Browse the repository at this point in the history
  • Loading branch information
EinsamHauer committed Jun 22, 2022
1 parent 75477dc commit 0af243e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>net.iponweb.disthene.reader</groupId>
<artifactId>disthene-reader</artifactId>
<packaging>jar</packaging>
<version>2.0.5</version>
<version>2.0.6</version>
<name>disthene-reader</name>
<url>http://maven.apache.org</url>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public void handle(Signal signal) {

throttlingService.reload(throttlingConfiguration);

logger.debug("Running with the following throttling configuration: " + throttlingConfiguration.toString());
logger.debug("Running with the following throttling configuration: " + throttlingConfiguration);
} catch (Exception e) {
logger.error("Reloading throttling configuration failed");
logger.error(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public List<TimeSeries> evaluate(TargetEvaluator evaluator) throws EvaluationExc
}

}
ts.setName(ts.getName() + sb.toString());
ts.setName(ts.getName() + sb);
}

return processedArguments;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private List<String> getPathsFromRegExs(String tenant, List<String> regExs, bool
.fetchSource("path", null)
.query(queryBuilder);

if (limit < maxResultWindow) sourceBuilder.size(limit);
sourceBuilder.size(Math.min(Math.min(limit, maxResultWindow), indexConfiguration.getScroll()));

SearchRequest request = new SearchRequest(indexConfiguration.getIndex())
.source(sourceBuilder)
Expand Down

0 comments on commit 0af243e

Please sign in to comment.