TServerInstance location = new TServerInstance(entry.getValue(), cq); if (future != null) { throw new BadLocationStateException("found two assignments for the same extent " + key.getRow() + ": " + future + " and " + location, entry.getKey().getRow()); TServerInstance location = new TServerInstance(entry.getValue(), cq); if (current != null) { throw new BadLocationStateException("found two locations for the same extent " + key.getRow() + ": " + current + " and " + location, entry.getKey().getRow()); String msg = "No prev-row for key extent " + decodedRow; log.error(msg); throw new BadLocationStateException(msg, k.getRow());
Master.log.error("Error processing table state for store " + store.name(), ex); if (ex.getCause() != null && ex.getCause() instanceof BadLocationStateException) { repairMetadata(((BadLocationStateException) ex.getCause()).getEncodedEndRow()); } else { sleepUninterruptibly(Master.WAIT_BETWEEN_ERRORS, TimeUnit.MILLISECONDS);
tls = MetaDataTableScanner.createTabletLocationState(entry.getKey(), entry.getValue()); } catch (BadLocationStateException e) { log.error("{}", e.getMessage(), e); return false;
Master.log.error("Error processing table state for store " + store.name(), ex); if (ex.getCause() != null && ex.getCause() instanceof BadLocationStateException) { repairMetadata(((BadLocationStateException) ex.getCause()).getEncodedEndRow()); } else { sleepUninterruptibly(Master.WAIT_BETWEEN_ERRORS, TimeUnit.MILLISECONDS);
log.error("Error processing table state for store " + store.name(), ex); if (ex.getCause() != null && ex.getCause() instanceof BadLocationStateException) { repairMetadata(((BadLocationStateException) ex.getCause()).getEncodedEndRow()); } else { UtilWaitThread.sleep(WAIT_BETWEEN_ERRORS);
tls = MetaDataTableScanner.createTabletLocationState(entry.getKey(), entry.getValue()); } catch (BadLocationStateException e) { log.error("{}", e.getMessage(), e); return false;
TServerInstance location = new TServerInstance(entry.getValue(), cq); if (future != null) { throw new BadLocationStateException("found two assignments for the same extent " + key.getRow() + ": " + future + " and " + location, entry.getKey().getRow()); TServerInstance location = new TServerInstance(entry.getValue(), cq); if (current != null) { throw new BadLocationStateException("found two locations for the same extent " + key.getRow() + ": " + current + " and " + location, entry.getKey().getRow()); String msg = "No prev-row for key extent " + decodedRow; log.error(msg); throw new BadLocationStateException(msg, k.getRow());
TServerInstance location = new TServerInstance(entry.getValue(), cq); if (future != null) { throw new BadLocationStateException("found two assignments for the same extent " + key.getRow() + ": " + future + " and " + location, entry.getKey() .getRow()); TServerInstance location = new TServerInstance(entry.getValue(), cq); if (current != null) { throw new BadLocationStateException("found two locations for the same extent " + key.getRow() + ": " + current + " and " + location, entry.getKey() .getRow());
public TabletLocationState(KeyExtent extent, TServerInstance future, TServerInstance current, TServerInstance last, SuspendingTServer suspend, Collection<Collection<String>> walogs, boolean chopped) throws BadLocationStateException { this.extent = extent; this.future = future; this.current = current; this.last = last; this.suspend = suspend; if (walogs == null) walogs = Collections.emptyList(); this.walogs = walogs; this.chopped = chopped; if (current != null && future != null) { throw new BadLocationStateException( extent + " is both assigned and hosted, which should never happen: " + this, extent.getMetadataEntry()); } }
public TabletLocationState(KeyExtent extent, TServerInstance future, TServerInstance current, TServerInstance last, Collection<Collection<String>> walogs, boolean chopped) throws BadLocationStateException { this.extent = extent; this.future = future; this.current = current; this.last = last; if (walogs == null) walogs = Collections.emptyList(); this.walogs = walogs; this.chopped = chopped; if (current != null && future != null) { throw new BadLocationStateException(extent + " is both assigned and hosted, which should never happen: " + this, extent.getMetadataEntry()); } }
public TabletLocationState(KeyExtent extent, TServerInstance future, TServerInstance current, TServerInstance last, SuspendingTServer suspend, Collection<Collection<String>> walogs, boolean chopped) throws BadLocationStateException { this.extent = extent; this.future = future; this.current = current; this.last = last; this.suspend = suspend; if (walogs == null) walogs = Collections.emptyList(); this.walogs = walogs; this.chopped = chopped; if (current != null && future != null) { throw new BadLocationStateException( extent + " is both assigned and hosted, which should never happen: " + this, extent.getMetadataEntry()); } }