@Override public void clearLocatorCache(ByteBuffer login, String tableName) throws org.apache.accumulo.proxy.thrift.TableNotFoundException, TException { try { getConnector(login).tableOperations().clearLocatorCache(tableName); } catch (TableNotFoundException e) { throw new org.apache.accumulo.proxy.thrift.TableNotFoundException(e.toString()); } catch (Exception e) { throw new TException(e.toString()); } }
/** * Write the given Mutation to the replication table. */ static void update(ClientContext context, Mutation m, KeyExtent extent) { Writer t = getWriter(context); while (true) { try { t.update(m); return; } catch (AccumuloException e) { log.error(e.toString(), e); } catch (AccumuloSecurityException e) { log.error(e.toString(), e); } catch (ConstraintViolationException e) { log.error(e.toString(), e); } catch (TableNotFoundException e) { log.error(e.toString(), e); } sleepUninterruptibly(1, TimeUnit.SECONDS); } }