keith-turner commented on a change in pull request #1060: Closes #1053 add multi-volume support to import table command. URL: https://github.com/apache/accumulo/pull/1060#discussion_r275583831
########## File path: server/master/src/main/java/org/apache/accumulo/master/tableOps/tableImport/ImportTable.java ########## @@ -127,7 +139,55 @@ public void checkVersions(Master env) throws AcceptableThriftTableOperationExcep @Override public void undo(long tid, Master env) throws Exception { - Utils.unreserveHdfsDirectory(env, new Path(tableInfo.exportDir).toString(), tid); + for (ImportedTableInfo.DirectoryMapping dm : tableInfo.directories) { + Utils.unreserveHdfsDirectory(env, new Path(dm.exportDir).toString(), tid); + } + Utils.unreserveNamespace(env, tableInfo.namespaceId, tid, false); } + + static List<ImportedTableInfo.DirectoryMapping> parseExportDir(String exportDir) { + if (exportDir == null || exportDir.isEmpty()) { Review comment: Would these inputs ever be expected? ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services