kevinrr888 commented on code in PR #5781:
URL: https://github.com/apache/accumulo/pull/5781#discussion_r2320078627


##########
server/manager/src/main/java/org/apache/accumulo/manager/upgrade/Upgrader12to13.java:
##########
@@ -438,4 +447,51 @@ void addTableMappingsToZooKeeper(ServerContext context) {
           "Could not read or write metadata in ZooKeeper because of ZooKeeper 
exception", ex);
     }
   }
+
+  void moveTableProperties(ServerContext context) {
+    try {
+      final SystemPropKey spk = SystemPropKey.of();
+      final VersionedProperties sysProps = context.getPropStore().get(spk);
+      final Map<String,String> sysTableProps = new HashMap<>();
+      sysProps.asMap().entrySet().stream()
+          .filter(e -> e.getKey().startsWith(Property.TABLE_PREFIX.getKey()))
+          .forEach(e -> sysTableProps.put(e.getKey(), e.getValue()));
+      LOG.info("Adding the following table properties to namespaces unless 
overridden:");
+      sysTableProps.forEach((k, v) -> LOG.info("{} -> {}", k, v));

Review Comment:
   yeah did not mean to include last line



-- 
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: notifications-unsubscr...@accumulo.apache.org

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

Reply via email to