HDDS-2165. Freon fails if bucket does not exists

Closes #1503
This commit is contained in:
Doroszlai, Attila 2019-09-25 12:19:10 +02:00 committed by Márton Elek
parent e346e3638c
commit 16f626f7f0
No known key found for this signature in database
GPG Key ID: D51EA8F00EE79B28

View File

@ -267,8 +267,9 @@ public void ensureVolumeAndBucketExist(OzoneConfiguration ozoneConfiguration,
} catch (OMException ex) {
if (ex.getResult() == ResultCodes.BUCKET_NOT_FOUND) {
volume.createBucket(bucketName);
} else {
throw ex;
}
throw ex;
}
}
}