HADOOP-17588. CryptoInputStream#close() should be synchronized.

Contributed by RenukaPrasad C

Change-Id: Ia0a19ccc55a67e5434f0be23a500496bc7682f40
This commit is contained in:
Boyina, Hemanth Kumar 2021-04-06 18:06:10 +05:30 committed by Steve Loughran
parent c4de4add5b
commit 30061940af
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0

View File

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