Building with CMake3 is now supported by the compile-cluster script included in the
NDB
source distribution.
Important Change: The dependency of ndb_restore on the
NDBT
library, which is used for internal testing only, has been removed. This means that the program no longer printsNDBT_ProgramExit: ...
when terminating. Applications that depend upon this behavior should be updated to reflect this change when upgrading to this release.-
When a pushed join executing in the
DBSPJ
block had to store correlation IDs during query execution, memory for these was allocated for the lifetime of the entire query execution, even though these specific correlation IDs are required only when producing the most recent batch in the result set. Subsequent batches require additional correlation IDs to be stored and allocated; thus, if the query took sufficiently long to complete, this led to exhaustion of query memory (error 20008). Now in such cases, memory is allocated only for the lifetime of the current result batch, and is freed and made available for re-use following completion of the batch. (Bug #29336777)References: See also: Bug #26995027.
-
In some cases, one and sometimes more data nodes underwent an unplanned shutdown while running ndb_restore. This occurred most often, but was not always restircted to, when restoring to a cluster having a different number of data nodes from the cluster on which the original backup had been taken.
The root cause of this issue was exhaustion of the pool of
SafeCounter
objects, used by theDBDICT
kernel block as part of executing schema transactions, and taken from a per-block-instance pool shared with protocols used forNDB
event setup and subscription processing. The concurrency of event setup and subscription processing is such that theSafeCounter
pool can be exhausted; event and subscription processing can handle pool exhaustion, but schema transaction processing could not, which could result in the node shutdown experienced during restoration.This problem is solved by giving
DBDICT
schema transactions an isolated pool of reservedSafeCounters
which cannot be exhausted by concurrentNDB
event activity. (Bug #28595915) -
ndb_restore did not restore autoincrement values correctly when one or more staging tables were in use. As part of this fix, we also in such cases block applying of the
SYSTAB_0
backup log, whose content continued to be applied directly based on the table ID, which could ovewrite the autoincrement values stored inSYSTAB_0
for unrelated tables. (Bug #27917769, Bug #27831990)References: See also: Bug #27832033.
-
ndb_restore employed a mechanism for restoring autoincrement values which was not atomic, and thus could yield incorrect autoincrement values being restored when multiple instances of ndb_restore were used in parallel. (Bug #27832033)
References: See also: Bug #27917769, Bug #27831990.
When executing the redo log in debug mode it was possible for a data node to fail when deallocating a row. (Bug #93273, Bug #28955797)
-
An
NDB
table having both a foreign key on anotherNDB
table usingON DELETE CASCADE
and one or moreTEXT
orBLOB
columns leaked memory.As part of this fix,
ON DELETE CASCADE
is no longer supported for foreign keys onNDB
tables when the child table contains a column that uses any of theBLOB
orTEXT
types. (Bug #89511, Bug #27484882)