HBASE-7177 TestZooKeeperScanPolicyObserver.testScanPolicyObserver is flaky
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1410199 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3e0385ec1d
commit
d322efdeb6
|
@ -85,9 +85,13 @@ public class TestZooKeeperScanPolicyObserver {
|
|||
// let's say test last backup was 1h ago
|
||||
// using plain ZK here, because RecoverableZooKeeper add extra encoding to the data
|
||||
zk.setData(ZooKeeperScanPolicyObserver.node, Bytes.toBytes(now - 3600*1000), -1);
|
||||
|
||||
|
||||
LOG.debug("Set time: "+Bytes.toLong(Bytes.toBytes(now - 3600*1000)));
|
||||
|
||||
// sleep for 1s to give the ZK change a chance to reach the watcher in the observer.
|
||||
// TODO: Better to wait for the data to be propagated
|
||||
Thread.sleep(1000);
|
||||
|
||||
long ts = now - 2000;
|
||||
Put p = new Put(R);
|
||||
p.add(F, Q, ts, Q);
|
||||
|
|
Loading…
Reference in New Issue