diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2021-03-30 12:14:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-30 12:14:24 +0200 |
commit | 5fdfce9ba39d0848667496cff5811f425baa24d6 (patch) | |
tree | 31ce4ed9a962e0dba02533902ec23f240fb57a27 /controller-api/src | |
parent | a070b3ea63f85d298f8bf204b0389fcdb5caa89c (diff) |
Cap number of log entries per fetch
@freva please review and merge.
Diffstat (limited to 'controller-api/src')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/LogEntry.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/LogEntry.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/LogEntry.java index 53ac0e42cb7..cd49a3f6294 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/LogEntry.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/LogEntry.java @@ -69,6 +69,7 @@ public class LogEntry { parts[6].replaceAll("\\\\n", "\n") .replaceAll("\\\\t", "\t"))) .filter(entry -> entry.at().isAfter(from)) + .limit(1_000_000) .collect(Collectors.toUnmodifiableList()); } catch (IOException e) { |