Bug #15878 Erroneous error message, Array index out of range
Submitted: 20 Dec 2005 7:42 Modified: 20 Feb 2006 23:46
Reporter: Tomas Ulin Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:4.1->5.1 OS:
Assigned to: Assigned Account CPU Architecture:Any

[20 Dec 2005 7:42] Tomas Ulin
Description:
Failing to restarting of a node too many times gives poor error message

Message: Array index out of range (Internal error, programming error or missing error message, please report a bug)
Error: 2304
Error data: DbdihMain.cpp
Error object: DBDIH (Line: 8287) 0x0000000a

How to repeat:
have node restart fail in e.g. startphase 5, 8 times

Suggested fix:
	    /*--------------------------------------------------------------
	     * SINCE IT WAS NOT ALIVE AT THE TIME OF THE SYSTEM CRASH THIS IS 
	     * A COMPLETELY NEW REPLICA. WE WILL SET THE CREATE GCI TO BE THE 
	     * NEXT GCI TO BE EXECUTED.                                       
	     *--------_----------------------------------------------------- */
	    const Uint32 nextCrashed = noCrashedReplicas + 1;
	    replicaPtr.p->noCrashedReplicas = nextCrashed;
	    arrGuard(nextCrashed, 8);
	    replicaPtr.p->createGci[nextCrashed] = newestRestorableGCI + 1;
	    ndbrequire(newestRestorableGCI + 1 != 0xF1F1F1F1);
	    replicaPtr.p->replicaLastGci[nextCrashed] = (Uint32)-1;

fix arrGuard to give correct error message
[20 Feb 2006 23:46] Tomas Ulin
moved to 17297