rakeshadr commented on a change in pull request #2151:
URL: https://github.com/apache/ozone/pull/2151#discussion_r615734624
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
##########
@@ -1115,6 +1118,9 @@ public void start() throws IOException {
getOMMetadataLayout();
metadataManager.start(configuration);
+
+ validatesBucketLayoutMismatches();
Review comment:
@elek Yes, its validating the bucket metadata only when
`OzoneManagerRatisUtils.isBucketFSOptimized` is true. IIUC, you are suggesting
to do the modification like below in OzoneManager#start() function, right? .
I have tried this but my test fail as I could see validation logic reads
bucketMetadata successfully only if I keep it after
`metadataManager.start(configuration);` function.
The validation logic reads bucket table data using `iterator =
metadataManager.getBucketTable().iterator();`,
```
getOMMetadataLayout();
validatesBucketLayoutMismatches();
// Start Ratis services
if (omRatisServer != null) {
omRatisServer.start();
}
metadataManager.start(configuration);
```
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]