Skip to content

Commit e000750

Browse files
committed
Self review fixes
1 parent d34cd64 commit e000750

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

libs/exponential-histogram/src/main/java/org/elasticsearch/exponentialhistogram/ExponentialHistogram.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ static ReleasableExponentialHistogram create(int maxBucketCount, ExponentialHist
143143
* Merges the provided exponential histograms to a new, single histogram with at most the given amount of buckets.
144144
*
145145
* @param maxBucketCount the maximum number of buckets the result histogram is allowed to have
146-
* @param histograms teh histograms to merge
146+
* @param breaker the circuit breaker to use to limit memory allocations
147+
* @param histograms the histograms to merge
147148
* @return the merged histogram
148149
*/
149150
static ReleasableExponentialHistogram merge(
@@ -163,7 +164,8 @@ static ReleasableExponentialHistogram merge(
163164
* Merges the provided exponential histograms to a new, single histogram with at most the given amount of buckets.
164165
*
165166
* @param maxBucketCount the maximum number of buckets the result histogram is allowed to have
166-
* @param histograms teh histograms to merge
167+
* @param breaker the circuit breaker to use to limit memory allocations
168+
* @param histograms the histograms to merge
167169
* @return the merged histogram
168170
*/
169171
static ReleasableExponentialHistogram merge(

libs/exponential-histogram/src/main/java/org/elasticsearch/exponentialhistogram/FixedCapacityExponentialHistogram.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public ExponentialHistogram.Buckets positiveBuckets() {
159159
@Override
160160
public void close() {
161161
if (closed) {
162-
assert false : "ExponentialHistogramMerger closed multiple times";
162+
assert false : "FixedCapacityExponentialHistogram closed multiple times";
163163
} else {
164164
closed = true;
165165
circuitBreaker.adjustBreaker(-ramBytesUsed());

0 commit comments

Comments
 (0)