for (Entry<Key,Value> entry : s) { ReplicationSchema.StatusSection.getFile(entry.getKey(), file); Table.ID tableId = ReplicationSchema.StatusSection.getTableId(entry.getKey()); log.debug("Processing replication status record for {} on table {}", file, tableId);
private Multimap<String,String> getAllLogs(Connector conn) throws Exception { Multimap<String,String> logs = getLogs(conn); try { Scanner scanner = conn.createScanner(ReplicationTable.NAME, Authorizations.EMPTY); StatusSection.limit(scanner); Text buff = new Text(); for (Entry<Key,Value> entry : scanner) { if (Thread.interrupted()) { Thread.currentThread().interrupt(); return logs; } StatusSection.getFile(entry.getKey(), buff); String file = buff.toString(); String tableId = StatusSection.getTableId(entry.getKey()); logs.put(file, tableId); } } catch (TableOfflineException e) { log.debug("Replication table isn't online yet"); } return logs; }
Text file = new Text(); for (Entry<Key,Value> entry : s) { StatusSection.getFile(entry.getKey(), file); String tableId = StatusSection.getTableId(entry.getKey());
recordsFound++; allReferencedLogsClosed = true; StatusSection.getFile(e.getKey(), buff); String file = buff.toString(); if (wals.contains(file)) {
for (Entry<Key,Value> entry : s) { ReplicationSchema.StatusSection.getFile(entry.getKey(), file); String tableId = ReplicationSchema.StatusSection.getTableId(entry.getKey()); log.debug("Processing replication status record for " + file + " on table " + tableId);