loc = TabletLocator.getInstance(instance, scanState.tableName).locateTablet(scanState.startRow, scanState.skipStartRow, false, credentials);
if (loc == null) {
if (!Tables.exists(instance, scanState.tableName.toString()))
throw new TableDeletedException(scanState.tableName.toString());
else if (Tables.getTableState(instance, scanState.tableName.toString()) == TableState.OFFLINE)
throw new TableOfflineException(instance, scanState.tableName.toString());
error = "Failed to locate tablet for table : " + scanState.tableName + " row : " + scanState.startRow;
if (!error.equals(lastError))
log.debug(error);
else if (log.isTraceEnabled())