Terracotta-OSS / galvan

An integration testing framework.
Apache License 2.0
1 stars 16 forks source link

Easier way to configure a stripe of 2 servers, but not start them and only manually start 1 active #134

Open mathieucarbou opened 7 years ago

mathieucarbou commented 7 years ago

I'd like to be able to configure a stripeSize of 2, with no server started automatically, and only manually do:

voltron.getClusterControl().startOneServer();
voltron.getClusterControl().waitForActive();

Currently, If I have a stripe size of 2, 2 servers starts and if I only want 1 active I must do something like:

voltron.getClusterControl().waitForActive();
voltron.getClusterControl().waitForRunningPassivesInStandby();
voltron.getClusterControl().terminateOnePassive();

@anthonydahanne : this is for our Failover tests

ljacomet commented 7 years ago

I have to admit this would be beneficial to the Ehcache integration tests as well. All the tests around passive sync currently start all servers, then kill the passive then execute tests then finally restart the passive. By being able to select in which state the galvan cluster gets created, we could cut some steps in the process.

AbfrmBlr commented 7 years ago

This has been requested earlier as well and should get some action now. https://github.com/Terracotta-OSS/galvan/issues/146 Controlled start/stop of servers will also help is proper passive assertions