HBASE-11918 TestVisibilityLabelsWithDistributedLogReplay#testAddVisibilityLabelsOnRSRestart sometimes fails due to VisibilityController initialization not being recognized

This commit is contained in:
Ted Yu 2014-09-09 14:33:25 +00:00
parent 180d9df216
commit b0e841d2c3
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ public class TestVisibilityLabelsWithDefaultVisLabelService extends TestVisibili
vcInitialized.set(false);
LOG.warn("VisibilityController was not yet initialized");
Threads.sleep(10);
} else {
vcInitialized.set(true);
}
} else LOG.debug("new labels added: " + resp);
} catch (Throwable t) {