We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d010f37 commit 4d9fa1aCopy full SHA for 4d9fa1a
1 file changed
server/src/main/java/org/elasticsearch/indices/recovery/RecoveryTranslogOperationsRequest.java
@@ -23,6 +23,7 @@
23
import org.elasticsearch.action.index.IndexRequest;
24
import org.elasticsearch.common.io.stream.StreamInput;
25
import org.elasticsearch.common.io.stream.StreamOutput;
26
+import org.elasticsearch.index.seqno.RetentionLease;
27
import org.elasticsearch.index.seqno.RetentionLeases;
28
import org.elasticsearch.index.seqno.SequenceNumbers;
29
import org.elasticsearch.index.shard.ShardId;
@@ -110,6 +111,8 @@ public void readFrom(StreamInput in) throws IOException {
110
111
}
112
if (in.getVersion().onOrAfter(Version.V_7_0_0)) {
113
retentionLeases = new RetentionLeases(in);
114
+ } else {
115
+ retentionLeases = RetentionLeases.EMPTY;
116
117
118
0 commit comments