HDFS-16551. CryptoInputStream#close() should be syncronized (#4227)

This commit is contained in:
Renukaprasad C 2022-04-24 23:49:12 +05:30 committed by GitHub
parent 0965822ae1
commit 5f259ef7fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ public class CryptoInputStream extends FilterInputStream implements
} }
@Override @Override
public void close() throws IOException { public synchronized void close() throws IOException {
if (closed) { if (closed) {
return; return;
} }