Bug #21440 5.1 API connecting to 5.0 cluster doesn't get any error (miss hb in cluster log)
Submitted: 4 Aug 2006 6:33 Modified: 22 May 2009 13:26
Reporter: Stewart Smith Email Updates:
Status: Open
Category:Server: NDBAPI Severity:S3 (Non-critical)
Version:mysql-5.1 OS:Any
Assigned to: Stewart Smith Target Version:
Tags: 5.0.23, 5.1bk
Triage: Triaged: D4 (Minor)

[4 Aug 2006 6:33] Stewart Smith
Description:
5.1 API connecting to 5.1 cluster doesn't generate any meaningful error message

How to repeat:
Start 5.0 cluster
compile NDBAPI against 5.1
try to connect 5.1 api to 5.0 cluster

Suggested fix:
NDBAPI prints meaningful error message

Cluster log contains meaningful error message
[29 Aug 2006 8:07] 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/10982

ChangeSet@1.2253, 2006-08-29 16:03:44+08:00, Justin.He@qa3-104.qa.cn.tlan +2 -0
  BUG #21440, 5.1 API connecting to 5.0 cluster doesn't get any error(miss hb in cluter
log)
[23 Mar 2007 10:57] 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/22753

ChangeSet@1.2475, 2007-03-23 18:49:56+08:00, Justin.He@dev3-240.dev.cn.tlan +2 -0
  Bug#21440 5.1 API connecting to 5.0 cluster doesn't get any error(miss hb in cluster
log)
[29 Mar 2007 8:10] Stewart Smith
Could you please add some tests to ndb/test/ndbapi/testMgm.cpp for testing at least the
following:

mgmapi reporting newer version than mgmd knows about
mgmapi reporting same version as mgmd
mgmapi reporting older version that's compatible
mgmapi reporting older version that's not compatible

Otherwise i think patch looks good now, but I think we need the testing in there.
[30 Mar 2007 6:11] Stewart Smith
I mean to "fake" the versions in the test program - the test suite framework will connect
anyway, but you can easily open up new connections and talk to the management server. 

Latest 5.1-ndb tree has my mgmapi timeouts code in there which adds a lot of tests to
testMgm that do just this.
[12 Apr 2007 6:50] 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/24360

ChangeSet@1.2479, 2007-04-12 14:41:50+08:00, Justin.He@dev3-240.dev.cn.tlan +3 -0
  Bug#21440 5.1 API connecting to 5.0 cluster doesn't get any error(miss hb in cluster
log)
  correct compatibility check for version between mgmapi and mgmsrv
  improve something for testcase
[17 Apr 2007 1:31] Stewart Smith
this looks okay to me i think.

once tomas okayed - ok to push.