Skip to content

Commit c47c0ca

Browse files
committed
More caveats for #getNodesHeapUsage()
1 parent bf51e85 commit c47c0ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/main/java/org/elasticsearch/cluster/ClusterInfo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ public Iterator<? extends ToXContent> toXContentChunked(ToXContent.Params params
221221
* Returns a node id to estimated heap usage mapping for all nodes that we have such data for.
222222
* Note that these estimates should be considered minimums. They may be used to determine whether
223223
* there IS NOT capacity to do something, but not to determine that there IS capacity to do something.
224+
* Also note that the map may not be complete, it may contain none, or a subset of the nodes in
225+
* the cluster at any time. It may also contain entries for nodes that have since left the cluster.
224226
*/
225227
public Map<String, HeapUsage> getNodesHeapUsage() {
226228
return nodesHeapUsage;

0 commit comments

Comments
 (0)