if (!ReplicationTable.isOnline(context)) { log.debug("Replication table isn't online, not attempting to clean up wals"); return;
log.debug("Looking for finished replication work"); if (!ReplicationTable.isOnline(client)) { log.debug("Replication table is not yet online, will retry"); return;
public void run() { if (!ReplicationTable.isOnline(client)) { log.debug("Replication table is not yet online"); return;
@Test public void noRecordsWithoutReplication() throws Exception { Connector conn = getConnector(); List<String> tables = new ArrayList<>(); // replication shouldn't be online when we begin Assert.assertFalse(ReplicationTable.isOnline(conn)); for (int i = 0; i < 5; i++) { String name = "table" + i; tables.add(name); conn.tableOperations().create(name); } // nor after we create some tables (that aren't being replicated) Assert.assertFalse(ReplicationTable.isOnline(conn)); for (String table : tables) { writeSomeData(conn, table, 5, 5); } // After writing data, still no replication table Assert.assertFalse(ReplicationTable.isOnline(conn)); for (String table : tables) { conn.tableOperations().compact(table, null, null, true, true); } // After compacting data, still no replication table Assert.assertFalse(ReplicationTable.isOnline(conn)); for (String table : tables) { conn.tableOperations().delete(table); } // After deleting tables, still no replication table Assert.assertFalse(ReplicationTable.isOnline(conn)); }
if (!ReplicationTable.isOnline(conn)) { log.debug("Replication table isn't online, not attempting to clean up wals"); return;
log.debug("Looking for finished replication work"); if (!ReplicationTable.isOnline(conn)) { log.debug("Replication table is not yet online, will retry"); return;
public void run() { if (!ReplicationTable.isOnline(conn)) { log.debug("Replication table is not yet online"); return;
log.info("TabletServer is online"); while (!ReplicationTable.isOnline(connMaster)) { log.info("Replication table still offline, waiting"); Thread.sleep(5000);
while (!ReplicationTable.isOnline(conn)) { sleepUninterruptibly(MILLIS_BETWEEN_REPLICATION_TABLE_ONLINE_CHECKS, TimeUnit.MILLISECONDS);
while (!ReplicationTable.isOnline(connMaster)) { log.info("Replication table still offline, waiting"); Thread.sleep(5000);
while (!ReplicationTable.isOnline(connMaster)) { log.info("Replication table still offline, waiting"); Thread.sleep(5000);
if (!ReplicationTable.isOnline(conn)) { banner(sb, "", "Replication table is offline"); return;
while (!ReplicationTable.isOnline(connMaster)) { Thread.sleep(500);
while (!ReplicationTable.isOnline(connMaster)) { log.info("Replication table still offline, waiting"); Thread.sleep(5000);
filesFor2 = connMaster.replicationOperations().referencedFiles(masterTable2); while (!ReplicationTable.isOnline(connMaster)) { Thread.sleep(500);