You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2022/09/07 17:48:07 UTC

[GitHub] [accumulo] DomGarguilo commented on a diff in pull request #2902: Attempt to make KerberosRenewalIT more stable

DomGarguilo commented on code in PR #2902:
URL: https://github.com/apache/accumulo/pull/2902#discussion_r965123038


##########
test/src/main/java/org/apache/accumulo/test/functional/KerberosRenewalIT.java:
##########
@@ -200,7 +199,21 @@ private void createReadWriteDrop(AccumuloClient client) throws TableNotFoundExce
           new Key("a", "b", "c").compareTo(entry.getKey(), PartialKey.ROW_COLFAM_COLQUAL),
           "Did not find the expected key");
       assertEquals("d", entry.getValue().toString());
-      client.tableOperations().delete(table);
     }
+    client.tableOperations().delete(table);
+  }
+
+  private String createTableAndReturnTableName(AccumuloClient client) throws AccumuloException,
+      AccumuloSecurityException, TableNotFoundException, TableExistsException {
+    final String tableName = getUniqueNames(1)[0] + "_table";
+    try {
+      client.tableOperations().create(tableName);
+    } catch (TableExistsException e) {
+      log.debug("Table {} already exists. Deleting and trying again.", tableName);
+      client.tableOperations().delete(tableName);

Review Comment:
   @EdColeman, this should be resolved as of [bdca3bd](https://github.com/apache/accumulo/pull/2902/commits/bdca3bde1fc9fef0034d9ebc2d1b6263f6d096d0). 



-- 
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-unsubscribe@accumulo.apache.org

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