guihecheng commented on a change in pull request #1955:
URL: https://github.com/apache/ozone/pull/1955#discussion_r582435557
##########
File path:
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/metadata/AbstractDatanodeStore.java
##########
@@ -89,11 +91,14 @@ protected AbstractDatanodeStore(ConfigurationSource config,
long containerID,
AbstractDatanodeDBDefinition dbDef, boolean openReadOnly)
throws IOException {
+ dbProfile = config.getEnum(HDDS_DB_PROFILE,
+ HDDS_DEFAULT_DB_PROFILE);
+
// The same config instance is used on each datanode, so we can share the
// corresponding column family options, providing a single shared cache
// for all containers on a datanode.
if (!OPTIONS_CACHE.containsKey(config)) {
- OPTIONS_CACHE.put(config, buildColumnFamilyOptions(config));
+ OPTIONS_CACHE.put(config, buildColumnFamilyOptions(config, dbProfile));
Review comment:
oh, thanks for your advice, I'll fix it and try to add a simple test
case~
----------------------------------------------------------------
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]