Skip to content

Commit ad7f1f7

Browse files
authored
Remove guard around atomic move supported check (#54917)
We use to allow non-data/non-master nodes to not have a persistent data path via the undocumented node.local_storage setting. We recently removed this setting, but left behind was a guard around a check that the data paths support atomic moves. This commit unguards this check, so that all nodes are required to have persistent storage that supports atomic move operations.
1 parent 70241b5 commit ad7f1f7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

server/src/main/java/org/elasticsearch/env/NodeEnvironment.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,7 @@ public NodeEnvironment(Settings settings, Environment environment) throws IOExce
279279
applySegmentInfosTrace(settings);
280280
assertCanWrite();
281281

282-
if (DiscoveryNode.isMasterNode(settings) || DiscoveryNode.isDataNode(settings)) {
283-
ensureAtomicMoveSupported(nodePaths);
284-
}
282+
ensureAtomicMoveSupported(nodePaths);
285283

286284
if (upgradeLegacyNodeFolders(logger, settings, environment, nodeLock)) {
287285
assertCanWrite();

0 commit comments

Comments
 (0)