Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.elasticsearch.cluster.ClusterStateTaskListener;
import org.elasticsearch.cluster.NotMasterException;
import org.elasticsearch.cluster.SimpleBatchedExecutor;
import org.elasticsearch.cluster.coordination.FailedToCommitClusterStateException;
import org.elasticsearch.cluster.metadata.IndexMetadata;
import org.elasticsearch.cluster.metadata.Metadata;
import org.elasticsearch.cluster.metadata.ProjectMetadata;
Expand Down Expand Up @@ -309,8 +308,7 @@ private static boolean isExpectedFailure(final Exception e) {
|| cause instanceof ResourceAlreadyExistsException
|| cause instanceof VersionConflictEngineException
|| cause instanceof DocumentMissingException
|| cause instanceof FailedToMarkBuiltInRolesAsSyncedException
|| (e instanceof FailedToCommitClusterStateException && "node closed".equals(cause.getMessage()));
|| cause instanceof FailedToMarkBuiltInRolesAsSyncedException;
}

private boolean shouldSyncBuiltInRoles(final ClusterState state) {
Expand Down