Ejemplo n.º 1
0
 /** Write the given Mutation to the replication table. */
 protected static void update(Credentials credentials, Mutation m, KeyExtent extent) {
   Writer t = getWriter(credentials);
   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);
     }
     UtilWaitThread.sleep(1000);
   }
 }
Ejemplo n.º 2
0
 public static void update(
     Credentials credentials, ZooLock zooLock, Mutation m, KeyExtent extent) {
   Writer t = extent.isMeta() ? getRootTable(credentials) : getMetadataTable(credentials);
   if (zooLock != null) putLockID(zooLock, m);
   while (true) {
     try {
       t.update(m);
       return;
     } catch (AccumuloException e) {
       log.error(e, e);
     } catch (AccumuloSecurityException e) {
       log.error(e, e);
     } catch (ConstraintViolationException e) {
       log.error(e, e);
     } catch (TableNotFoundException e) {
       log.error(e, e);
     }
     UtilWaitThread.sleep(1000);
   }
 }