@Override public void invalidateCache(ClientContext context, String server) { syncLocator().invalidateCache(context, server); } }
@Override public void invalidateCache() { syncLocator().invalidateCache(); }
@Override public void invalidateCache(KeyExtent failedExtent) { syncLocator().invalidateCache(failedExtent); }
@Override public void invalidateCache(Collection<KeyExtent> keySet) { syncLocator().invalidateCache(keySet); }
@Override public void clearLocatorCache(String tableName) throws TableNotFoundException { checkArgument(tableName != null, "tableName is null"); TabletLocator tabLocator = TabletLocator.getLocator(context, Tables.getTableId(context, tableName)); tabLocator.invalidateCache(); }
parent.invalidateCache(failures.keySet()); parent.invalidateCache(context, tserver); } catch (AccumuloServerException e) { log.trace("lookupTablets failed server={}", tserver, e);
public static List<TabletLocation> findOverlappingTablets(ServerContext context, VolumeManager fs, TabletLocator locator, Path file, KeyExtent failed) throws Exception { locator.invalidateCache(failed); Text start = getStartRowForExtent(failed); return findOverlappingTablets(context, fs, locator, file, start, failed.getEndRow()); }
getLocator(table).invalidateCache(context, location);
} catch (NotServingTabletException e) { log.trace("Not serving tablet, server = {}", parsedLocation); TabletLocator.getLocator(context, tableId).invalidateCache(tabLoc.tablet_extent); } catch (ConstraintViolationException cve) { log.error("error sending update to {}", parsedLocation, cve); TabletLocator.getLocator(context, tableId).invalidateCache(tabLoc.tablet_extent); throw cve; } catch (TException e) { log.error("error sending update to {}", parsedLocation, e); TabletLocator.getLocator(context, tableId).invalidateCache(tabLoc.tablet_extent);
tl.invalidateCache(); while (!tl.binRanges(context, Collections.singletonList(range), binnedRanges).isEmpty()) { if (!Tables.exists(context, tableId)) tl.invalidateCache();
options, authorizations, timeoutTracker); if (tsFailures.size() > 0) { locator.invalidateCache(tsFailures.keySet()); synchronized (failures) { failures.putAll(tsFailures); locator.invalidateCache(context, tsLocation);
if (log.isTraceEnabled()) log.trace("{} lookup failed", src.tablet_extent.getTableId(), e); parent.invalidateCache(context, src.tablet_location);
while (assignmentFailures.size() > 0) { sleepTime = Math.min(sleepTime * 2, 60 * 1000); locator.invalidateCache();
} catch (NotServingTabletException e) { allFailures.addAll(entry.getKey().getTableId(), entry.getValue()); getLocator(entry.getKey().getTableId()).invalidateCache(entry.getKey()); } catch (ConstraintViolationException e) { updatedConstraintViolations( getLocator(tableId).invalidateCache(failedExtent);
locator.invalidateCache(context, location.toString()); return; throw new AccumuloServerException(location.toString(), tae); } catch (TException e) { locator.invalidateCache(context, location.toString());
locator.invalidateCache(); locator.invalidateCache();
tabLocator.invalidateCache(tl.tablet_extent); throw new AccumuloServerException(address.toString(), tae); } catch (TTransportException e) { tabLocator.invalidateCache(context, tl.tablet_location); continue; } catch (ThriftSecurityException e) { tabLocator.invalidateCache(tl.tablet_extent); continue; } catch (TException e) { tabLocator.invalidateCache(context, tl.tablet_location); continue;
locator.invalidateCache(ke); queueException(location, cmidToCm, ase); } catch (TTransportException e) { locator.invalidateCache(context, location.toString()); invalidateSession(location, cmidToCm, sessionId); } catch (TApplicationException tae) { queueException(location, cmidToCm, new AccumuloServerException(location.toString(), tae)); } catch (TException e) { locator.invalidateCache(context, location.toString()); invalidateSession(location, cmidToCm, sessionId); } catch (Exception e) {
lastError = error; TabletLocator.getLocator(context, scanState.tableId).invalidateCache(loc.tablet_extent); loc = null; TabletLocator.getLocator(context, scanState.tableId).invalidateCache(context, loc.tablet_location); error = "Scan failed, thrift error " + e.getClass().getName() + " " + e.getMessage()