Skip to content

Commit dbfc731

Browse files
committed
Don't serialize exceptions
1 parent af74770 commit dbfc731

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/get/GetSnapshotsResponse.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ public GetSnapshotsResponse(
5555

5656
public GetSnapshotsResponse(StreamInput in) throws IOException {
5757
this.snapshots = in.readCollectionAsImmutableList(SnapshotInfo::readFrom);
58-
// TODO Skip when we have V9 in TransportVersions
59-
in.readMap(StreamInput::readException);
6058
this.next = in.readOptionalString();
6159
this.total = in.readVInt();
6260
this.remaining = in.readVInt();
@@ -87,8 +85,6 @@ public int remaining() {
8785
@Override
8886
public void writeTo(StreamOutput out) throws IOException {
8987
out.writeCollection(snapshots);
90-
// TODO Skip when we have V9 in TransportVersions
91-
out.writeMap(Map.of(), StreamOutput::writeException);
9288
out.writeOptionalString(next);
9389
out.writeVInt(total);
9490
out.writeVInt(remaining);

0 commit comments

Comments
 (0)