Skip to content

Commit

Permalink
Added sleep to rebalance test for the metadata to propagate
Browse files Browse the repository at this point in the history
  • Loading branch information
rsumbaly committed May 18, 2011
1 parent 1ba7cf7 commit 87bac55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/unit/voldemort/client/rebalance/AdminRebalanceTest.java
Expand Up @@ -878,7 +878,7 @@ public void testRebalanceNodeRO() throws IOException {
}

@Test
public void testRebalanceNodeRORW() throws IOException {
public void testRebalanceNodeRORW() throws IOException, InterruptedException {

try {
startFourNodeRORW();
Expand Down Expand Up @@ -992,6 +992,8 @@ public void testRebalanceNodeRORW() throws IOException {
fail("Should have thrown an exception since we added state before hand");
} catch(VoldemortRebalancingException e) {}

Thread.sleep(1000);

for(VoldemortServer server: servers) {
assertEquals(server.getMetadataStore().getRebalancerState(),
new RebalancerState(new ArrayList<RebalancePartitionsInfo>()));
Expand Down

0 comments on commit 87bac55

Please sign in to comment.