Skip to content

Commit

Permalink
Do not take into account negative allocations for reporting
Browse files Browse the repository at this point in the history
FORCE_FREE_TAG tag will have negative memory reservations
and thus will cause succinctBytes to fail.
  • Loading branch information
sopel39 committed May 1, 2019
1 parent b30c856 commit 1f8c556
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ private String getAdditionalFailureInfo(long allocated, long delta)
String topConsumers = queryAllocations.entrySet().stream()
.sorted(comparingByValue(Comparator.reverseOrder()))
.limit(3)
.filter(e -> e.getValue() >= 0)
.collect(toImmutableMap(Entry::getKey, e -> succinctBytes(e.getValue())))
.toString();

Expand Down

0 comments on commit 1f8c556

Please sign in to comment.