Browse Source

Unwrap this Optional for the log message (#77661)

Joe Gallo 4 years ago
parent
commit
32c17accd0

+ 1 - 1
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/DataTierMigrationRoutedStep.java

@@ -98,7 +98,7 @@ public class DataTierMigrationRoutedStep extends ClusterStateWaitStep {
             return new Result(false, new AllocationInfo(idxMeta.getNumberOfReplicas(), allocationPendingAllShards, true, statusMessage));
         } else {
             logger.debug("[{}] migration of index [{}] to tier [{}] (preference [{}]) complete",
-                getKey().getAction(), index, availableDestinationTier, preferredTierConfiguration);
+                getKey().getAction(), index, availableDestinationTier.orElse(""), preferredTierConfiguration);
             return new Result(true, null);
         }
     }