HADOOP-17588. CryptoInputStream#close() should be syncronized. Contributed by RenukaPrasad C

This commit is contained in:
Boyina, Hemanth Kumar 2021-04-06 18:06:10 +05:30
parent 36014b8282
commit e86050fae5

View File

@ -317,7 +317,7 @@ private void resetStreamOffset(long offset) throws IOException {
} }
@Override @Override
public void close() throws IOException { public synchronized void close() throws IOException {
if (closed) { if (closed) {
return; return;
} }