Fix failing colocated examples
This commit is contained in:
parent
fe95e34390
commit
df075c423f
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue