Skip to content

Commit 970da64

Browse files
committed
make sure we keep the *oldest* installed version - since this defines the number of installed data.
1 parent 03f4423 commit 970da64

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

release_tester/arangodb/starter/manager.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def __init__(
6565
self.expect_instances = expect_instances
6666
self.expect_instances.sort()
6767
self.cfg = copy.deepcopy(basecfg)
68+
self.old_version = self.cfg.version
6869
self.default_starter_args = self.cfg.default_starter_args.copy()
6970
if moreopts is None:
7071
self.moreopts = []
@@ -687,7 +688,7 @@ def replace_binary_for_upgrade(self, new_install_cfg, relaunch=True):
687688
logging.info("StarterManager: respawned instance as [%s]", str(self.instance.pid))
688689
self.cfg = new_install_cfg
689690
self.arangosh = None
690-
self.detect_arangosh_instances(new_install_cfg, old_version)
691+
self.detect_arangosh_instances(new_install_cfg, self.old_version)
691692

692693
@step
693694
def kill_specific_instance(self, which_instances):
@@ -1080,7 +1081,7 @@ def detect_instance_pids(self):
10801081
)
10811082

10821083
self.show_all_instances()
1083-
self.detect_arangosh_instances(self.cfg, self.cfg.version)
1084+
self.detect_arangosh_instances(self.cfg, self.old_version)
10841085

10851086
@step
10861087
def detect_fatal_errors(self):
@@ -1339,7 +1340,7 @@ def run_starter(self, expect_to_fail=False):
13391340

13401341
@step
13411342
def detect_instances(self):
1342-
self.detect_arangosh_instances(self.cfg, self.cfg.version)
1343+
self.detect_arangosh_instances(self.cfg, self.old_version)
13431344

13441345
@step
13451346
def detect_instance_pids(self):

0 commit comments

Comments
 (0)