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 el...@apache.org on 2019/09/25 11:31:04 UTC

[hadoop] branch trunk updated: HDDS-2165. Freon fails if bucket does not exists

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

elek pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 16f626f  HDDS-2165. Freon fails if bucket does not exists
16f626f is described below

commit 16f626f7f05982ee74a55d7248a2ad510683bfc6
Author: Doroszlai, Attila <ad...@apache.org>
AuthorDate: Wed Sep 25 12:19:10 2019 +0200

    HDDS-2165. Freon fails if bucket does not exists
    
    Closes #1503
---
 .../main/java/org/apache/hadoop/ozone/freon/BaseFreonGenerator.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/BaseFreonGenerator.java b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/BaseFreonGenerator.java
index 0303479..f9b5e03 100644
--- a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/BaseFreonGenerator.java
+++ b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/BaseFreonGenerator.java
@@ -267,8 +267,9 @@ public class BaseFreonGenerator {
       } catch (OMException ex) {
         if (ex.getResult() == ResultCodes.BUCKET_NOT_FOUND) {
           volume.createBucket(bucketName);
+        } else {
+          throw ex;
         }
-        throw ex;
       }
     }
   }


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