xiaoyuyao commented on a change in pull request #1874:
URL: https://github.com/apache/ozone/pull/1874#discussion_r568822670
##########
File path:
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/metadata/SCMDBDefinition.java
##########
@@ -73,13 +75,30 @@
public static final DBColumnFamilyDefinition<ContainerID, ContainerInfo>
CONTAINERS =
- new DBColumnFamilyDefinition<ContainerID, ContainerInfo>(
+ new DBColumnFamilyDefinition<>(
"containers",
ContainerID.class,
new ContainerIDCodec(),
ContainerInfo.class,
new ContainerInfoCodec());
+ public static final DBColumnFamilyDefinition<Long, CRLInfo> CRL_INFO =
+ new DBColumnFamilyDefinition<>(
+ "crlInfo",
+ Long.class,
+ new LongCodec(),
+ CRLInfo.class,
+ new CRLInfoCodec());
+
+ public static final DBColumnFamilyDefinition<String, Long>
+ CRL_SEQUENCE_ID =
Review comment:
It's a bit overkill to use a table to just save the crl sequence id. Any
chance to put it into the SCM version file?
----------------------------------------------------------------
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]