protected static void setupClusters(boolean allowProceeding) throws Exception {
    // Set the max request size to a tiny 10K for dividing the replication WAL entries into multiple
    // batches. the default max request size is 256M, so all replication entries are in a batch, but
    // when replicate at sink side, it'll apply to rs group by table name, so the WAL of test table
    // may apply first, and then test_dropped table, and we will believe that the replication is not
    // got stuck (HBASE-20475).
    // we used to use 10K but the regionServerReport is greater than this limit in this test which
    // makes this test fail, increase to 64K
    CONF1.setInt(RpcServer.MAX_REQUEST_SIZE, 64 * 1024);
    // set a large value size to make sure we will split the replication to several batches
    VALUE = new byte[4096];
    ThreadLocalRandom.current().nextBytes(VALUE);
    // make sure we have a single region server only, so that all
    // edits for all tables go there
    NUM_SLAVES1 = 1;
    NUM_SLAVES2 = 1;
    ALLOW_PROCEEDING = allowProceeding;
    CONF1.setBoolean(REPLICATION_DROP_ON_DELETED_TABLE_KEY, allowProceeding);
    CONF1.setInt(HConstants.REPLICATION_SOURCE_MAXTHREADS_KEY, 1);
    TestReplicationBase.setUpBeforeClass();
  }
Base class for testing replication for dropped tables.
hbase-server/src/test/java/org/apache/hadoop/hbase/replication/ReplicationDroppedTablesTestBase.java