Bug #18016 Some debug output in non-debug build
Submitted: 7 Mar 2006 11:15 Modified: 8 Mar 2006 23:22
Reporter: Geert Vanderkelen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:5.1.7 OS:
Assigned to: Tomas Ulin CPU Architecture:Any

[7 Mar 2006 11:15] Geert Vanderkelen
Description:
Got some debug output while shutting down. It doesn't always happen, so repeating it might be a bit tricky (timing issue):

ndb_mgm> Node 4: Node shutdown completed.
bucket == 0, gci:1026 complete: [ GCI: 1027  state: 0x00000000  head: (nil)  tail: (nil) gcp: 0]
0 - [ GCI: 1028  state: 0x00000000  head: (nil)  tail: (nil) gcp: 2]
1 - [ GCI: 1029  state: 0x00000000  head: (nil)  tail: (nil) gcp: 2]
2 - [ GCI: 1030  state: 0x00000000  head: (nil)  tail: (nil) gcp: 2]
3 - [ GCI: 1031  state: 0x00000000  head: (nil)  tail: (nil) gcp: 2]
4 - [ GCI: 0  state: 0x00000000  head: (nil)  tail: (nil) gcp: 0]
5 - [ GCI: 0  state: 0x00000000  head: (nil)  tail: (nil) gcp: 0]
6 - [ GCI: 0  state: 0x00000000  head: (nil)  tail: (nil) gcp: 0]
7 - [ GCI: 0  state: 0x00000000  head: (nil)  tail: (nil) gcp: 0]
bucket == 0, gci:1027 complete: [ GCI: 1027  state: 0x00000000  head: (nil)  tail: (nil) gcp: 0]
0 - [ GCI: 1028  state: 0x00000000  head: (nil)  tail: (nil) gcp: 2]
1 - [ GCI: 1029  state: 0x00000000  head: (nil)  tail: (nil) gcp: 2]
2 - [ GCI: 1030  state: 0x00000000  head: (nil)  tail: (nil) gcp: 2]
3 - [ GCI: 1031  state: 0x00000000  head: (nil)  tail: (nil) gcp: 2]
4 - [ GCI: 0  state: 0x00000000  head: (nil)  tail: (nil) gcp: 0]
5 - [ GCI: 0  state: 0x00000000  head: (nil)  tail: (nil) gcp: 0]
6 - [ GCI: 0  state: 0x00000000  head: (nil)  tail: (nil) gcp: 0]
7 - [ GCI: 0  state: 0x00000000  head: (nil)  tail: (nil) gcp: 0]

How to repeat:

Using: mysql-5.1.7-beta-linux-x86_64-glibc23.tar.gz

Doing in the management node:
  ndb_mgm> 4 stop;

Where 4 should be replaced with an Id which is a data node I guess.
[7 Mar 2006 11:16] Geert Vanderkelen
Verified on 5.1.7 (using mysql-5.1.7-beta-linux-x86_64-glibc23.tar.gz)
Had to open bug report, is not always repeatable but should looked into it so debug output never shows in non-debug builds.
[7 Mar 2006 13:48] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/3542
[8 Mar 2006 23:22] Tomas Ulin
pushed to 5.1.8, no need to document