You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by st...@apache.org on 2022/04/21 21:12:32 UTC

[hadoop] branch branch-3.3 updated: HADOOP-17588. CryptoInputStream#close() should be synchronized.

This is an automated email from the ASF dual-hosted git repository.

stevel pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.3 by this push:
     new 30061940af7 HADOOP-17588. CryptoInputStream#close() should be synchronized.
30061940af7 is described below

commit 30061940af70a1a132d2e5a130ca72d4b01bd052
Author: Boyina, Hemanth Kumar <hb...@visa.com>
AuthorDate: Tue Apr 6 18:06:10 2021 +0530

    HADOOP-17588. CryptoInputStream#close() should be synchronized.
    
    Contributed by RenukaPrasad C
    
    Change-Id: Ia0a19ccc55a67e5434f0be23a500496bc7682f40
---
 .../src/main/java/org/apache/hadoop/crypto/CryptoInputStream.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/CryptoInputStream.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/CryptoInputStream.java
index 0c156e3548d..3f8dc54bd4a 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/CryptoInputStream.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/CryptoInputStream.java
@@ -317,7 +317,7 @@ public class CryptoInputStream extends FilterInputStream implements
   }
   
   @Override
-  public void close() throws IOException {
+  public synchronized void close() throws IOException {
     if (closed) {
       return;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org