HADOOP-17588. CryptoInputStream#close() should be syncronized. Contributed by RenukaPrasad C
This commit is contained in:
parent
36014b8282
commit
e86050fae5
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user