|
@@ -19,10 +19,10 @@
|
|
|
|
|
|
package org.elasticsearch.index.seqno;
|
|
|
|
|
|
+import org.apache.logging.log4j.message.ParameterizedMessage;
|
|
|
import org.apache.lucene.store.AlreadyClosedException;
|
|
|
import org.elasticsearch.ExceptionsHelper;
|
|
|
import org.elasticsearch.Version;
|
|
|
-import org.elasticsearch.action.ActionFuture;
|
|
|
import org.elasticsearch.action.ActionListener;
|
|
|
import org.elasticsearch.action.support.ActionFilters;
|
|
|
import org.elasticsearch.action.support.replication.ReplicationOperation;
|
|
@@ -35,7 +35,6 @@ import org.elasticsearch.cluster.node.DiscoveryNode;
|
|
|
import org.elasticsearch.cluster.service.ClusterService;
|
|
|
import org.elasticsearch.common.inject.Inject;
|
|
|
import org.elasticsearch.common.settings.Settings;
|
|
|
-import org.elasticsearch.index.shard.IndexEventListener;
|
|
|
import org.elasticsearch.index.shard.IndexShard;
|
|
|
import org.elasticsearch.index.shard.IndexShardClosedException;
|
|
|
import org.elasticsearch.index.shard.ShardId;
|
|
@@ -85,7 +84,7 @@ public class GlobalCheckpointSyncAction extends TransportReplicationAction<
|
|
|
new Request(shardId),
|
|
|
ActionListener.wrap(r -> {}, e -> {
|
|
|
if (ExceptionsHelper.unwrap(e, AlreadyClosedException.class, IndexShardClosedException.class) == null) {
|
|
|
- logger.info(shardId + " global checkpoint sync failed", e);
|
|
|
+ logger.info(new ParameterizedMessage("{} global checkpoint sync failed", shardId), e);
|
|
|
}
|
|
|
}));
|
|
|
}
|