@Override public void flush(String tableName) throws AccumuloException, AccumuloSecurityException { try { flush(tableName, null, null, false); } catch (TableNotFoundException e) { throw new AccumuloException(e.getMessage(), e); } }
} catch (TableNotFoundException e) { LoggerFactory.getLogger(ShellPluginConfigurationCommand.class) .error("Table not found: {} {}", tableName, e.getMessage()); return null; } catch (Exception e) {
private Namespace.ID getNamespaceIdFromTableId(TableOperation tableOp, Table.ID tableId) throws ThriftTableOperationException { Namespace.ID namespaceId; try { namespaceId = Tables.getNamespaceId(master.getContext(), tableId); } catch (TableNotFoundException e) { throw new ThriftTableOperationException(tableId.canonicalID(), null, tableOp, TableOperationExceptionType.NOTFOUND, e.getMessage()); } return namespaceId; }
private Namespace.ID getNamespaceIdFromTableId(TableOperation tableOp, Table.ID tableId) throws ThriftTableOperationException { Namespace.ID namespaceId; try { namespaceId = Tables.getNamespaceId(master.getContext(), tableId); } catch (TableNotFoundException e) { throw new ThriftTableOperationException(tableId.canonicalID(), null, tableOp, TableOperationExceptionType.NOTFOUND, e.getMessage()); } return namespaceId; }
@Override @Deprecated public void flush(String tableName) throws AccumuloException, AccumuloSecurityException { try { flush(tableName, null, null, false); } catch (TableNotFoundException e) { throw new AccumuloException(e.getMessage(), e); } }
private String getNamespaceIdFromTableId(TableOperation tableOp, String tableId) throws ThriftTableOperationException { String namespaceId; try { namespaceId = Tables.getNamespaceId(instance, tableId); } catch (TableNotFoundException e) { throw new ThriftTableOperationException(tableId, null, tableOp, TableOperationExceptionType.NOTFOUND, e.getMessage()); } return namespaceId; }
} catch (TableNotFoundException e) { LoggerFactory.getLogger(ShellPluginConfigurationCommand.class) .error("Table not found: {} {}", tableName, e.getMessage()); return null; } catch (Exception e) {
private String getNamespaceIdFromTableId(TableOperation tableOp, String tableId) throws ThriftTableOperationException { String namespaceId; try { namespaceId = Tables.getNamespaceId(master.getInstance(), tableId); } catch (TableNotFoundException e) { throw new ThriftTableOperationException(tableId, null, tableOp, TableOperationExceptionType.NOTFOUND, e.getMessage()); } return namespaceId; }
public static void update(Writer t, ZooLock zooLock, Mutation m) { if (zooLock != null) putLockID(zooLock, m); while (true) { try { t.update(m); return; } catch (AccumuloException e) { log.error("{}", e.getMessage(), e); } catch (AccumuloSecurityException e) { log.error("{}", e.getMessage(), e); } catch (ConstraintViolationException e) { log.error("{}", e.getMessage(), e); // retrying when a CVE occurs is probably futile and can cause problems, see ACCUMULO-3096 throw new RuntimeException(e); } catch (TableNotFoundException e) { log.error("{}", e.getMessage(), e); } sleepUninterruptibly(1, TimeUnit.SECONDS); } }
@Override public void run() { try { while (true) { List<KeyValue> currentBatch = ThriftScanner.scan(scanState.context, scanState, timeOut); if (currentBatch == null) { synchQ.add(EMPTY_LIST); return; } if (currentBatch.size() == 0) continue; synchQ.add(currentBatch); return; } } catch (IsolationException | ScanTimedOutException | AccumuloException | AccumuloSecurityException | TableDeletedException | TableOfflineException | SampleNotPresentException e) { log.trace("{}", e.getMessage(), e); synchQ.add(e); } catch (TableNotFoundException e) { log.warn("{}", e.getMessage(), e); synchQ.add(e); } catch (Exception e) { log.error("{}", e.getMessage(), e); synchQ.add(e); } }
@Override public void purge(final RdfCloudTripleStoreConfiguration configuration) { for (final String tableName : getTables()) { try { purge(tableName, configuration.getAuths()); compact(tableName); } catch (final TableNotFoundException e) { logger.error(e.getMessage()); } catch (final MutationsRejectedException e) { logger.error(e.getMessage()); } } for(final AccumuloIndexer indexer : this.secondaryIndexers) { try { indexer.purge(configuration); } catch(final Exception e) { logger.error("Failed to purge indexer", e); } } }
@Override public void purge(final RdfCloudTripleStoreConfiguration configuration) { for (final String tableName : getTables()) { try { purge(tableName, configuration.getAuths()); compact(tableName); } catch (final TableNotFoundException e) { logger.error(e.getMessage()); } catch (final MutationsRejectedException e) { logger.error(e.getMessage()); } } for(final AccumuloIndexer indexer : this.secondaryIndexers) { try { indexer.purge(configuration); } catch(final Exception e) { logger.error("Failed to purge indexer", e); } } }
processFailures(failures, receiver, columns); } catch (TableNotFoundException e) { log.debug("{}", e.getMessage(), e); fatalException = e; } catch (AccumuloException e) {
@Override public void dropAndDestroy() throws RyaDAOException { for (final String tableName : getTables()) { try { if (tableName != null) { drop(tableName); } } catch (final AccumuloSecurityException e) { logger.error(e.getMessage()); throw new RyaDAOException(e); } catch (final AccumuloException e) { logger.error(e.getMessage()); throw new RyaDAOException(e); } catch (final TableNotFoundException e) { logger.warn(e.getMessage()); } } destroy(); for(final AccumuloIndexer indexer : this.secondaryIndexers) { try { indexer.dropAndDestroy(); } catch(final Exception e) { logger.error("Failed to drop and destroy indexer", e); } } }
@Override public void dropAndDestroy() throws RyaDAOException { for (final String tableName : getTables()) { try { if (tableName != null) { drop(tableName); } } catch (final AccumuloSecurityException e) { logger.error(e.getMessage()); throw new RyaDAOException(e); } catch (final AccumuloException e) { logger.error(e.getMessage()); throw new RyaDAOException(e); } catch (final TableNotFoundException e) { logger.warn(e.getMessage()); } } destroy(); for(final AccumuloIndexer indexer : this.secondaryIndexers) { try { indexer.dropAndDestroy(); } catch(final Exception e) { logger.error("Failed to drop and destroy indexer", e); } } }
"[" + subscriptionId + "] Error in MetricScanner", e.getMessage(), e);
updateUnknownErrors(e.getMessage(), e); } catch (TableNotFoundException e) { updateUnknownErrors(e.getMessage(), e);
log.info(e.getMessage()); response.addException(e); throw new NotFoundException(e, response);
throw new ThriftSecurityException(); } catch (TableNotFoundException e) { log.error(e.getMessage(), e); throw new ThriftTableOperationException();
throw new ThriftSecurityException(); } catch (TableNotFoundException e) { Master.log.error("{}", e.getMessage(), e); throw new ThriftTableOperationException();