Skip to content

Commit 0761fc4

Browse files
committed
Revert "Don't serialize exceptions"
This reverts commit dbfc731.
1 parent d6696c4 commit 0761fc4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ 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);
5860
this.next = in.readOptionalString();
5961
this.total = in.readVInt();
6062
this.remaining = in.readVInt();
@@ -85,6 +87,8 @@ public int remaining() {
8587
@Override
8688
public void writeTo(StreamOutput out) throws IOException {
8789
out.writeCollection(snapshots);
90+
// TODO Skip when we have V9 in TransportVersions
91+
out.writeMap(Map.of(), StreamOutput::writeException);
8892
out.writeOptionalString(next);
8993
out.writeVInt(total);
9094
out.writeVInt(remaining);

0 commit comments

Comments
 (0)