From 85e6d5b510ddf7b075cf10a4615c1954954681d7 Mon Sep 17 00:00:00 2001 From: Joshua Adams Date: Wed, 8 Oct 2025 16:30:43 +0100 Subject: [PATCH 1/2] Updates FailedToCommitClusterStateException javadoc Update the FailedToCommitClusterStateException javadoc to specify that it can only be thrown by master nodes. --- .../coordination/FailedToCommitClusterStateException.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main/java/org/elasticsearch/cluster/coordination/FailedToCommitClusterStateException.java b/server/src/main/java/org/elasticsearch/cluster/coordination/FailedToCommitClusterStateException.java index 40252346b1615..4b7de07e220f7 100644 --- a/server/src/main/java/org/elasticsearch/cluster/coordination/FailedToCommitClusterStateException.java +++ b/server/src/main/java/org/elasticsearch/cluster/coordination/FailedToCommitClusterStateException.java @@ -17,6 +17,7 @@ /** * Exception indicating a cluster state update was published and may or may not have been committed. + * This exception can only be thrown by master nodes. *

* If this exception is thrown, then the cluster state update was published, but is not guaranteed * to be committed, including the next master node. This exception should only be thrown when there is From dc739735fcdcea551933106e00462bd56d136f88 Mon Sep 17 00:00:00 2001 From: Joshua Adams Date: Wed, 8 Oct 2025 16:34:00 +0100 Subject: [PATCH 2/2] Updates comment --- .../coordination/FailedToCommitClusterStateException.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/cluster/coordination/FailedToCommitClusterStateException.java b/server/src/main/java/org/elasticsearch/cluster/coordination/FailedToCommitClusterStateException.java index 4b7de07e220f7..1566aac08960c 100644 --- a/server/src/main/java/org/elasticsearch/cluster/coordination/FailedToCommitClusterStateException.java +++ b/server/src/main/java/org/elasticsearch/cluster/coordination/FailedToCommitClusterStateException.java @@ -17,7 +17,7 @@ /** * Exception indicating a cluster state update was published and may or may not have been committed. - * This exception can only be thrown by master nodes. + * This exception can only be thrown by the master node. *

* If this exception is thrown, then the cluster state update was published, but is not guaranteed * to be committed, including the next master node. This exception should only be thrown when there is