public void visit()

in src/main/java/org/apache/accumulo/testing/randomwalk/concurrent/CreateTable.java [35:54]


  public void visit(State state, RandWalkEnv env, Properties props) throws Exception {
    AccumuloClient client = env.getAccumuloClient();
    String tableName = state.getRandomTableName();

    try {
      client.tableOperations().create(tableName);
      log.debug("Created table " + tableName);
    } catch (TableExistsException e) {
      log.debug("Create " + tableName + " failed, it exists");
    } catch (AccumuloException e) {
      if (e.getCause() != null && e.getCause() instanceof NamespaceNotFoundException)
        log.debug("Create " + tableName + " failed, the namespace does not exist");
      else
        throw e;
    } catch (IllegalArgumentException e) {
      log.debug("Create: " + e);
    } catch (AccumuloSecurityException e) {
      log.debug("Could not create table: " + e);
    }
  }