Skip to content

Commit 1ea4b28

Browse files
committed
Bug#32130078 Bug#30647187 ADDS DEBUG STATEMENTS IN TESTUPGRADE, DBDICT
Adds test-only require statements in DbDict.cpp and debug statements in testUpgrade.cpp to investigate Bug#32130078 and Bug#30647187. Both the mentioned bugs happen very sporadically and couldn't be reproduced after several manual attempts. Added code which will be removed once issues are reproduced. Change-Id: I51d3a0e533a5549138d1781bfa72b1604a047e0f
1 parent b5d4253 commit 1ea4b28

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2003, 2021, Oracle and/or its affiliates.
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,
@@ -18898,6 +18898,12 @@ void Dbdict::dropEvent_sendReply(Signal* signal,
1889818898
ret->setErrorLine(evntRecPtr.p->m_errorLine);
1889918899
ret->setErrorNode(evntRecPtr.p->m_errorNode);
1890018900

18901+
// Attempt to get the trace to investigate sporadic failures
18902+
#ifdef ERROR_INSERT
18903+
ndbrequire(evntRecPtr.p->m_errorCode != 4710); // Investigate Bug#32130078
18904+
ndbrequire(evntRecPtr.p->m_errorCode != 1418); // Investigate Bug#30647187
18905+
#endif
18906+
1890118907
sendSignal(senderRef, GSN_DROP_EVNT_REF, signal,
1890218908
DropEvntRef::SignalLength, JBB);
1890318909
} else {

storage/ndb/test/ndbapi/testUpgrade.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,14 @@ createDropEvent(NDBT_Context* ctx, NDBT_Step* step, bool wait = true)
366366
{
367367
continue;
368368
}
369+
ndbout << "step " << step->getStepNo() << endl;
370+
ndbout << "Creating event for table: " << tab->getName() << endl;
369371
if ((res = createEvent(pNdb, *tab) != NDBT_OK))
370372
{
371373
goto done;
372374
}
373-
374-
375-
375+
ndbout << "step " << step->getStepNo() << endl;
376+
ndbout << "Dropping event for table: " << tab->getName() << endl;
376377
if ((res = dropEvent(pNdb, *tab)) != NDBT_OK)
377378
{
378379
goto done;

0 commit comments

Comments
 (0)