Skip to content

Commit c9b4995

Browse files
available hack to get around 66769
1 parent 8aeac07 commit c9b4995

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

x-pack/plugin/repository-encrypted/src/main/java/org/elasticsearch/repositories/encrypted/EncryptionPacketsInputStream.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@ InputStream nextComponent(InputStream currentComponentIn) throws IOException {
138138
return new CountingInputStream(encryptionInputStream, false);
139139
}
140140

141+
// remove after https://github.com/elastic/elasticsearch/pull/66769 is merged in
142+
@Override
143+
public int available() throws IOException {
144+
return 0;
145+
}
146+
141147
@Override
142148
public boolean markSupported() {
143149
return source.markSupported();

0 commit comments

Comments
 (0)