Skip to content

Commit b54cf1a

Browse files
committed
Bug#32452559 ADDS A DEBUG STATEMENT TO TESTUPGRADE TEST IN 7.3 and 7.4
Adds a debug statement to print the nodeGroup id which bitmask receives from the testUpgrade test case. Upgrade/downgrade tests are sporadically crashing when nodeGroup id, sent from the test case is used as an index(after bit shifting) to check the status of data nodes. The nodeGroup id from test case always seems to be zero since the testcases are restarting the first half of the cluster. So, adding a debug statement in the test case to confirm that the nodeGroup id is not 0 when it crashes or if it is indeed 0 and the test still crashes, it indicates that the bitmask array is corrupted. Reviewed by: Priyanka Sangam <priyanka.sangam@oracle.com> Change-Id: I5e59cf81acc33908bf89d76de007d89ca74b3bda
1 parent d2dbda1 commit b54cf1a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

storage/ndb/test/ndbapi/testUpgrade.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2008, 2021, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License, version 2.0,
@@ -758,6 +758,9 @@ runUpgrade_Half(NDBT_Context* ctx, NDBT_Step* step)
758758
int processId = nodes[i].processId;
759759
int nodeGroup= nodes[i].nodeGroup;
760760

761+
if (nodeGroup != 0) {
762+
ndberr << "Expected nodeGroup 0, but got " << nodeGroup << endl;
763+
}
761764
if (seen_groups.get(nodeGroup))
762765
{
763766
// One node in this node group already down

0 commit comments

Comments
 (0)