parent
e346e3638c
commit
16f626f7f0
@ -267,11 +267,12 @@ public void ensureVolumeAndBucketExist(OzoneConfiguration ozoneConfiguration,
|
|||||||
} catch (OMException ex) {
|
} catch (OMException ex) {
|
||||||
if (ex.getResult() == ResultCodes.BUCKET_NOT_FOUND) {
|
if (ex.getResult() == ResultCodes.BUCKET_NOT_FOUND) {
|
||||||
volume.createBucket(bucketName);
|
volume.createBucket(bucketName);
|
||||||
}
|
} else {
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create missing target volume.
|
* Create missing target volume.
|
||||||
|
Loading…
Reference in New Issue
Block a user