|
@@ -9,6 +9,7 @@
|
|
package org.elasticsearch.indices.recovery;
|
|
package org.elasticsearch.indices.recovery;
|
|
|
|
|
|
import org.elasticsearch.cluster.node.DiscoveryNode;
|
|
import org.elasticsearch.cluster.node.DiscoveryNode;
|
|
|
|
+import org.elasticsearch.common.Strings;
|
|
import org.elasticsearch.common.io.stream.StreamInput;
|
|
import org.elasticsearch.common.io.stream.StreamInput;
|
|
import org.elasticsearch.common.io.stream.StreamOutput;
|
|
import org.elasticsearch.common.io.stream.StreamOutput;
|
|
import org.elasticsearch.index.seqno.SequenceNumbers;
|
|
import org.elasticsearch.index.seqno.SequenceNumbers;
|
|
@@ -123,6 +124,22 @@ public class StartRecoveryRequest extends TransportRequest {
|
|
return canDownloadSnapshotFiles;
|
|
return canDownloadSnapshotFiles;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public String getDescription() {
|
|
|
|
+ return Strings.format(
|
|
|
|
+ """
|
|
|
|
+ recovery of %s to %s \
|
|
|
|
+ [recoveryId=%d, targetAllocationId=%s, startingSeqNo=%d, primaryRelocation=%s, canDownloadSnapshotFiles=%s]""",
|
|
|
|
+ shardId,
|
|
|
|
+ targetNode.descriptionWithoutAttributes(),
|
|
|
|
+ recoveryId,
|
|
|
|
+ targetAllocationId,
|
|
|
|
+ startingSeqNo,
|
|
|
|
+ primaryRelocation,
|
|
|
|
+ canDownloadSnapshotFiles
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public void writeTo(StreamOutput out) throws IOException {
|
|
public void writeTo(StreamOutput out) throws IOException {
|
|
super.writeTo(out);
|
|
super.writeTo(out);
|