keith-turner commented on code in PR #2569:
URL: https://github.com/apache/accumulo/pull/2569#discussion_r855602541
##########
server/base/src/main/java/org/apache/accumulo/server/tables/TableManager.java:
##########
@@ -96,8 +110,21 @@ public static void prepareNewTableState(ZooReaderWriter
zoo, InstanceId instance
zoo.putPersistentData(zTablePath + Constants.ZTABLE_COMPACT_CANCEL_ID,
ZERO_BYTE, existsPolicy);
zoo.putPersistentData(zTablePath + Constants.ZTABLE_STATE,
state.name().getBytes(UTF_8),
existsPolicy);
+ PropCacheKey propKey = PropCacheKey.forTable(instanceId, tableId);
+ if (!propStore.exists(propKey)) {
+ propStore.create(propKey, Map.of());
+ }
+ }
+
+ public static void prepareNewTableState(final ServerContext context, TableId
tableId,
+ NamespaceId namespaceId, String tableName, TableState state,
NodeExistsPolicy existsPolicy)
+ throws KeeperException, InterruptedException {
+ prepareNewTableState(context.getZooReaderWriter(), context.getPropStore(),
+ context.getInstanceID(), tableId, namespaceId, tableName, state,
existsPolicy);
}
+ // context, REPL_TABLE_ID, replicationTableName,
+ // TableState.OFFLINE, Namespace.ACCUMULO.id(), ZooUtil.NodeExistsPolicy.FAIL
Review Comment:
What are these comments?
--
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]