You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/10/19 08:33:56 UTC

[GitHub] [ozone] ChenSammi commented on a diff in pull request #3841: HDDS-7320. Enable Container SchemaV3 by default.

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


##########
hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/upgrade/TestDatanodeUpgradeToScmHA.java:
##########
@@ -103,6 +104,8 @@ public TestDatanodeUpgradeToScmHA(boolean scmHAAlreadyEnabled) {
     this.scmHAAlreadyEnabled = scmHAAlreadyEnabled;
     conf = new OzoneConfiguration();
     conf.setBoolean(ScmConfigKeys.OZONE_SCM_HA_ENABLE_KEY, scmHAAlreadyEnabled);
+    // DATANODE_SCHEMA_V3 has higher feature version than SCM_HA
+    conf.setBoolean(DatanodeConfiguration.CONTAINER_SCHEMA_V3_ENABLED, false);

Review Comment:
   This test doesn't need to be updated every time there is a new layout feature.  The failure is "DB should not be null".   
   
   When schemaV3 is enabled, it requires a RocksDB created prior to write container metadata to DB.  The RocksDB is created when the first time DN registers to SCM, or cluster is upgrading from prior layout to DATANODE_SCHEMA_V3 layout. 
   
   This test is testing upgrade from initial layout to ScmHA layout.  The RocksDB doesn't get either chance to be created. So when putBlock is called, it fails.  Disable DATANODE_SCHEMA_V3 just keeps the original intent of this test. 



-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org