|
@@ -31,7 +31,6 @@ import java.io.IOException;
|
|
|
|
|
|
public class CompressibleBytesOutputStreamTests extends ESTestCase {
|
|
|
|
|
|
- @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/60814")
|
|
|
public void testStreamWithoutCompression() throws IOException {
|
|
|
BytesStream bStream = new ZeroOutOnCloseStream();
|
|
|
CompressibleBytesOutputStream stream = new CompressibleBytesOutputStream(bStream, false);
|
|
@@ -115,8 +114,10 @@ public class CompressibleBytesOutputStreamTests extends ESTestCase {
|
|
|
|
|
|
@Override
|
|
|
public void close() {
|
|
|
- int size = (int) bytes.size();
|
|
|
- bytes.set(0, new byte[size], 0, size);
|
|
|
+ if (bytes != null) {
|
|
|
+ int size = (int) bytes.size();
|
|
|
+ bytes.set(0, new byte[size], 0, size);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|