Skip to content

Commit 1ec0c73

Browse files
author
Andrey Ershov
committed
Fix test failure. Convert IllegalStateException to IOException
1 parent bfd24fc commit 1ec0c73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/main/java/org/elasticsearch/gateway/MetaDataStateFormat.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ public void close() throws IOException {
113113
builder.endObject();
114114
}
115115
CodecUtil.writeFooter(out);
116+
} catch (IllegalStateException e) {
117+
throw new IOException(e);
116118
}
117119

118120
stateDir.sync(Collections.singleton(tmpFileName));

0 commit comments

Comments
 (0)