ChenSammi commented on code in PR #11817:
URL: https://github.com/apache/ozone/pull/11817#discussion_r4411075480


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/lifecycle/OMLifecycleConfigurationSetRequest.java:
##########
@@ -110,6 +114,10 @@ public OMRequest preExecute(OzoneManager ozoneManager) 
throws IOException {
         lifecycleConfiguration.toBuilder()
             .setVolume(resolvedBucket.realVolume())
             .setBucket(resolvedBucket.realBucket());
+    // Bind the request to the bucket validated above, see 
validateAndUpdateCache.
+    if (bucketInfo != null) {

Review Comment:
   If bucketInfo is null, we shall abort fail the preExecute with 
BUCKET_NOT_FOUND.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to