One basic way of debugging the MySQL Cluster data nodes(ndbd) is
with good old printf-style debugging. Ie. adding printouts of the
variable you want to see, recompile, start the node(s) and run
your tests. This is a bit tedious but very universal.
Support for printing is available using "ndbout", which has both
C++ style and printf style. This functionality is implemented in
storage/ndb/include/util/NdbOut.hpp
Here is an example from debugging BUG#37592, where I wanted to add printouts to
"Dbtup::rebuild_page_free_list" to see how the pageId increases
while the rebuild is running:
void[Read more]
Dbtup::rebuild_page_free_list(Signal* signal)
{
Ptr fragOpPtr;
fragOpPtr.i = signal->theData[1];
Uint32 pageId = signal->theData[2];
Uint32 tail = signal->theData[3];
ptrCheckGuard(fragOpPtr, …