Skip to content

Commit

Permalink
Remove @UpdateForV9 from RepositoryConflictException (#122746)
Browse files Browse the repository at this point in the history
* Remove `@UpdateForV9` from `RepositoryConflictException`

#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]>
  • Loading branch information
arteam and elasticsearchmachine authored Feb 17, 2025
1 parent 4a10945 commit 8edec7c
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.core.UpdateForV9;
import org.elasticsearch.rest.RestStatus;

import java.io.IOException;
Expand All @@ -29,14 +28,12 @@ public RestStatus status() {
return RestStatus.CONFLICT;
}

@UpdateForV9(owner = UpdateForV9.Owner.DISTRIBUTED_COORDINATION) // drop unneeded string from wire format
public RepositoryConflictException(StreamInput in) throws IOException {
super(in);
in.readString();
}

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

0 comments on commit 8edec7c

Please sign in to comment.