You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ad...@apache.org on 2021/07/16 08:18:22 UTC
[ozone] branch master updated: HDDS-5392. Avoid catching Error
while creating Ozone client (#2408)
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 <64...@users.noreply.github.com>
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: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org