|
|
@@ -1062,13 +1062,13 @@ public class IndicesService extends AbstractLifecycleComponent
|
|
|
if (isAllocated) {
|
|
|
return ShardDeletionCheckResult.STILL_ALLOCATED; // we are allocated - can't delete the shard
|
|
|
} else if (indexSettings.hasCustomDataPath()) {
|
|
|
- // lets see if it's on a custom path (return false if the shared doesn't exist)
|
|
|
+ // lets see if it's on a custom path (return false if the shard doesn't exist)
|
|
|
// we don't need to delete anything that is not there
|
|
|
return Files.exists(nodeEnv.resolveCustomLocation(indexSettings.customDataPath(), shardId)) ?
|
|
|
ShardDeletionCheckResult.FOLDER_FOUND_CAN_DELETE :
|
|
|
ShardDeletionCheckResult.NO_FOLDER_FOUND;
|
|
|
} else {
|
|
|
- // lets see if it's path is available (return false if the shared doesn't exist)
|
|
|
+ // lets see if it's path is available (return false if the shard doesn't exist)
|
|
|
// we don't need to delete anything that is not there
|
|
|
return FileSystemUtils.exists(nodeEnv.availableShardPaths(shardId)) ?
|
|
|
ShardDeletionCheckResult.FOLDER_FOUND_CAN_DELETE :
|