Description:
An NdbRecord design goal is for an NdbRecord object to be reusable between threads and at
any time until the user is finished with it.
The current NdbRecord implementation embeds an NdbTableImpl*, which points to data which
is not independent of the ndb_cluster_connection it was created using.
This means that users must discard/rebuild their NdbRecord objects when deleting an
ndb_cluster_connection, which is not documented anywhere.
How to repeat:
Create cluster connection.
Connect to cluster.
Create table.
Obtain default NdbRecord from table object,
Use for PK access.
delete cluster connection.
Create cluster connection.
Connect to cluster.
Attempt to use NdbRecord from above for PK access.
Suggested fix:
NdbRecord should be changed to be truly independent of any ndb_cluster_connection, or
subtended object.