public static AtomicReference<CountDownLatch> getPrimaryCdl() {
      return primaryCdl;
    }
This copro is used to synchronize the tests.
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestReplicasClient.java