Skip to content

Commit 8edec7c

Browse files
arteamelasticsearchmachine
andauthored
Remove @UpdateForV9 from RepositoryConflictException (elastic#122746)
* Remove `@UpdateForV9` from `RepositoryConflictException` elastic#122730 added checks in 9.1.0 that `backwardCompatibleMessage` won't be serialized * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <[email protected]>
1 parent 4a10945 commit 8edec7c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

server/src/main/java/org/elasticsearch/repositories/RepositoryConflictException.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import org.elasticsearch.common.io.stream.StreamInput;
1313
import org.elasticsearch.common.io.stream.StreamOutput;
14-
import org.elasticsearch.core.UpdateForV9;
1514
import org.elasticsearch.rest.RestStatus;
1615

1716
import java.io.IOException;
@@ -29,14 +28,12 @@ public RestStatus status() {
2928
return RestStatus.CONFLICT;
3029
}
3130

32-
@UpdateForV9(owner = UpdateForV9.Owner.DISTRIBUTED_COORDINATION) // drop unneeded string from wire format
3331
public RepositoryConflictException(StreamInput in) throws IOException {
3432
super(in);
3533
in.readString();
3634
}
3735

3836
@Override
39-
@UpdateForV9(owner = UpdateForV9.Owner.DISTRIBUTED_COORDINATION) // drop unneeded string from wire format
4037
protected void writeTo(StreamOutput out, Writer<Throwable> nestedExceptionsWriter) throws IOException {
4138
super.writeTo(out, nestedExceptionsWriter);
4239
out.writeString("");

0 commit comments

Comments
 (0)