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

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new dccfbae  HDDS-5392. Avoid catching Error while creating Ozone client 
(#2408)
dccfbae is described below

commit dccfbae81f47cf811fb20e1b7355d9450340c150
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Fri Jul 16 10:18:00 2021 +0200

    HDDS-5392. Avoid catching Error while creating Ozone client (#2408)
---
 .../src/main/java/org/apache/hadoop/ozone/s3/OzoneClientProducer.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/OzoneClientProducer.java
 
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/OzoneClientProducer.java
index d08fd92..83809c3 100644
--- 
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/OzoneClientProducer.java
+++ 
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/OzoneClientProducer.java
@@ -137,11 +137,11 @@ public class OzoneClientProducer {
         LOG.debug("Error during Client Creation: ", ex);
       }
       throw wrapOS3Exception(ex);
-    } catch (Throwable t) {
+    } catch (Exception e) {
       // For any other critical errors during object creation throw Internal
       // error.
       if (LOG.isDebugEnabled()) {
-        LOG.debug("Error during Client Creation: ", t);
+        LOG.debug("Error during Client Creation: ", e);
       }
       throw wrapOS3Exception(INTERNAL_ERROR);
     }

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to