Selaa lähdekoodia

HDDS-2165. Freon fails if bucket does not exists

Closes #1503
Doroszlai, Attila 5 vuotta sitten
vanhempi
commit
16f626f7f0

+ 2 - 1
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;
       }
     }
   }