Fix failing colocated examples

This commit is contained in:
jbertram 2015-07-29 16:53:44 -05:00 committed by Clebert Suconic
parent fe95e34390
commit df075c423f
4 changed files with 12 additions and 4 deletions

View File

@ -97,7 +97,8 @@ public class ColocatedFailoverScaleDownExample
// Step 7. Crash server #0, the live server, and wait a little while to make sure
// it has really crashed
ServerUtil.killServer(server0);
Thread.sleep(5000);
System.out.println("Waiting for scale-down to complete...");
Thread.sleep(10000);
// Step 8. start the connection ready to receive messages
connection1.start();

View File

@ -97,6 +97,7 @@ public class ColocatedFailoverExample
// Step 7. Crash server #0, the live server, and wait a little while to make sure
// it has really crashed
ServerUtil.killServer(server0);
Thread.sleep(10000);
// Step 8. start the connection ready to receive messages
connection.start();

View File

@ -89,7 +89,9 @@ under the License.
<master>
<failover-on-shutdown>true</failover-on-shutdown>
</master>
<slave/>
<slave>
<failover-on-shutdown>true</failover-on-shutdown>
</slave>
</colocated>
</shared-store>
</ha-policy>

View File

@ -86,8 +86,12 @@ under the License.
<backup-request-retry-interval>2000</backup-request-retry-interval>
<max-backups>1</max-backups>
<request-backup>true</request-backup>
<master/>
<slave/>
<master>
<failover-on-shutdown>true</failover-on-shutdown>
</master>
<slave>
<failover-on-shutdown>true</failover-on-shutdown>
</slave>
</colocated>
</shared-store>
</ha-policy>