Skip to content

Commit 16f626f

Browse files
adoroszlaielek
authored andcommitted
HDDS-2165. Freon fails if bucket does not exists
Closes #1503
1 parent e346e36 commit 16f626f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/BaseFreonGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,9 @@ public void ensureVolumeAndBucketExist(OzoneConfiguration ozoneConfiguration,
267267
} catch (OMException ex) {
268268
if (ex.getResult() == ResultCodes.BUCKET_NOT_FOUND) {
269269
volume.createBucket(bucketName);
270+
} else {
271+
throw ex;
270272
}
271-
throw ex;
272273
}
273274
}
274275
}

0 commit comments

Comments
 (0)