Skip to content

Commit ff9eeeb

Browse files
committed
improving a comment
1 parent 04a99c4 commit ff9eeeb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/main/java/org/elasticsearch/ingest/SamplingService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,9 @@ private int hashException(Exception e) {
615615
/*
616616
* If the sample stats report more raw documents than the maximum size allowed for this sample, then this method creates a new
617617
* cloned copy of the stats, but with the reported samples lowered to maxSize, and the reported rejected documents increased by the
618-
* same amount. This avoids the confusing situation of the stats reporting more samples than the user has configured.
618+
* same amount. This avoids the confusing situation of the stats reporting more samples than the user has configured. This can
619+
* happen in a multi-node cluster when each node has collected fewer than maxSize raw documents but the total across all nodes is
620+
* greater than maxSize.
619621
*/
620622
public SampleStats adjustForMaxSize(int maxSize) {
621623
long actualSamples = samples.longValue();

0 commit comments

Comments
 (0)