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

This commit is contained in:
Ted Yu 2014-09-09 14:34:01 +00:00
parent 4995ed8a02
commit ee631e19c6
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) {