dlmarion commented on code in PR #4685:
URL: https://github.com/apache/accumulo/pull/4685#discussion_r1650961842


##########
server/manager/src/main/java/org/apache/accumulo/manager/tableOps/Utils.java:
##########
@@ -59,12 +59,18 @@ public class Utils {
   public static void checkTableDoesNotExist(ServerContext context, String 
tableName,
       TableId tableId, TableOperation operation) throws 
AcceptableThriftTableOperationException {
 
-    TableId id = context.getTableNameToIdMap().get(tableName);
-
-    if (id != null && !id.equals(tableId)) {
-      throw new AcceptableThriftTableOperationException(null, tableName, 
operation,
-          TableOperationExceptionType.EXISTS, null);
+    try {
+      if (context.getZooReader()
+          .exists(context.getZooKeeperRoot() + Constants.ZTABLES + "/" + 
tableId.canonical())) {

Review Comment:
   I fixed this in ce3eb51. CreateTableIT run time went from 180s to 280s, but 
still completes with the additional comms to ZooKeeper.



-- 
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]

Reply via email to