Skip to content

Commit 89337c8

Browse files
committed
Bug#32712389 FIXES THE PROPERTY TO RESTART MGMDS IN EXPECTED MANNER
Modifies testUpgrade.cpp to fix the case sensitive property name, 'InitialMgmdRestart' for some test cases. InitialMgmdRestart is a property which acts as a control variable in deciding the type of restart to be performed on management nodes for upgrading/downgrading the cluster. For some test cases, it was being incorrectly set(InitialMGMDRestart) which led to Upgrade_NR1 and Upgrade_Api_Before_NR1 to restart mgmds without --initial as opposed to with --initial which is the expected behaviour. Change-Id: I8c85546f3bb56ac84c218c279455094a1398dc8a
1 parent 0b9d1e9 commit 89337c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

storage/ndb/test/ndbapi/testUpgrade.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2319,7 +2319,7 @@ POSTUPGRADE("ShowVersions")
23192319
};
23202320
TESTCASE("Upgrade_NR1",
23212321
"Test that one node at a time can be upgraded"){
2322-
TC_PROPERTY("InitialMGMDRestart", Uint32(1));
2322+
TC_PROPERTY("InitialMgmdRestart", Uint32(1));
23232323
INITIALIZER(runCheckStarted);
23242324
INITIALIZER(runReadVersions);
23252325
INITIALIZER(checkForUpgrade);
@@ -2329,7 +2329,7 @@ TESTCASE("Upgrade_NR1",
23292329
}
23302330
POSTUPGRADE("Upgrade_NR1")
23312331
{
2332-
TC_PROPERTY("InitialMGMDRestart", Uint32(1));
2332+
TC_PROPERTY("InitialMgmdRestart", Uint32(1));
23332333
INITIALIZER(runCheckStarted);
23342334
INITIALIZER(runPostUpgradeChecks);
23352335
}
@@ -2480,7 +2480,7 @@ TESTCASE("Upgrade_Api_Before_NR1",
24802480
}
24812481
POSTUPGRADE("Upgrade_Api_Before_NR1")
24822482
{
2483-
TC_PROPERTY("InitialMGMDRestart", Uint32(1));
2483+
TC_PROPERTY("InitialMgmdRestart", Uint32(1));
24842484
INITIALIZER(runCheckStarted);
24852485
INITIALIZER(runPostUpgradeDecideDDL);
24862486
INITIALIZER(runGetTableList);
@@ -2690,7 +2690,7 @@ TESTCASE("Downgrade_NR2_WithMGMDInitialStart",
26902690
}
26912691
POSTUPGRADE("Downgrade_NR2_WithMGMDInitialStart")
26922692
{
2693-
TC_PROPERTY("InitialMGMDRestart", Uint32(1));
2693+
TC_PROPERTY("InitialMgmdRestart", Uint32(1));
26942694
INITIALIZER(runCheckStarted);
26952695
INITIALIZER(runPostUpgradeChecks);
26962696
}
@@ -2722,7 +2722,7 @@ TESTCASE("Downgrade_NR3_WithMGMDInitialStart",
27222722
}
27232723
POSTUPGRADE("Downgrade_NR3_WithMGMDInitialStart")
27242724
{
2725-
TC_PROPERTY("InitialMGMDRestart", Uint32(1));
2725+
TC_PROPERTY("InitialMgmdRestart", Uint32(1));
27262726
INITIALIZER(runCheckStarted);
27272727
INITIALIZER(runPostUpgradeChecks);
27282728
}
@@ -2764,7 +2764,7 @@ TESTCASE("Downgrade_FS_WithMGMDInitialStart",
27642764
}
27652765
POSTUPGRADE("Downgrade_FS_WithMGMDInitialStart")
27662766
{
2767-
TC_PROPERTY("InitialMGMDRestart", Uint32(1));
2767+
TC_PROPERTY("InitialMgmdRestart", Uint32(1));
27682768
INITIALIZER(runCheckStarted);
27692769
INITIALIZER(runPostUpgradeChecks);
27702770
}

0 commit comments

Comments
 (0)