Bug #77404 Remove deprecated config paramaters in 7.5
Submitted: 18 Jun 2015 14:00 Modified: 5 Jan 2016 14:09
Reporter: Magnus Blåudd Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:7.5.0 OS:Any
Assigned to: CPU Architecture:Any

[18 Jun 2015 14:00] Magnus Blåudd
Description:
Several config variables for NDB has been marked as deprecated for several versions and it's time to remove them now. 

Note that we just marked some as deprecated in 7.4 and those will not be affected by this cleanup.

Affected variables are:

COMPUTER.ByteOrder

DB.Id  - has been replaced by NodeId
DB.MaxNoOfIndexes  - has no effect and replaced by MaxNoOfOrderedIndexes or MaxNoOfUniqueHashIndexes
DB.NoOfDiskPagesToDiskDuringRestartTUP - has no effect and replaced by DiskCheckpointSpeedSr
DB.NoOfDiskPagesToDiskAfterRestartTUP -  has no effect and replaced by DiskCheckpointSpeed
DB.NoOfDiskPagesToDiskDuringRestartACC - has no effect and replaced by DiskCheckpointSpeedSr
DB.NoOfDiskPagesToDiskAfterRestartACC -  has no effect and replaced by DiskCheckpointSpeed
DB.Discless - has been replaced by Diskless
DB.DiskCheckpointSpeed - has no effect
DB.DiskCheckpointSpeedInRestart - has no effect
DB.ReserveredSendBufferMemory - has no effect

API.Id  - has been replaced by NodeId

MGM.Id  - has been replaced by NodeId
MGM.MaxNoOfSavedEvents - has no effect

The following three need to be handled separately as there are code still using them(and seems like mixed up with DB.ServerPort?):
TCP.PortNumber
SHM.PortNumber
SHM.PortNumber

How to repeat:
Look in ConfigInfo.cpp for CI_DEPRECATED and use git to see when they were marked as deprecated.

Suggested fix:
Remove config variables which have been deprecated for long time.
[5 Jan 2016 14:09] Jon Stephens
Documented the change in the NDB 7.5.0 changelog, as follows:

       Important Change: A number of MySQL
       Cluster data node configuration parameters were
       deprecated in earlier versions of MySQL Cluster, and have
       been removed with this release. These parameters include
       Id, NoOfDiskPagesToDiskDuringRestartTUP,
       NoOfDiskPagesToDiskDuringRestartACC,
       NoOfDiskPagesToDiskAfterRestartACC,
       NoOfDiskPagesToDiskAfterRestartTUP,
       ReservedSendBufferMemory, MaxNoOfIndexes, and Discless
       (use Diskless instead). The archaic and unused ByteOrder
       computer configuration parameter has also been removed.
       These parameters are no longer supported; most of them
       already did not have (or no longer had) any effect.
       Trying to use any of these parameters in a MySQL Cluster
       configuration file now results in an error.
       For more information, see 'MySQL Cluster Development
       History' in the documentation.

Updated the NDB 7.5 documentation with the removal info.

Closed.
[4 Mar 2016 10:10] Jon Stephens
The unused MaxNoOfSavedEvents management node configuration parameter was also removed as part of this fix. I've updated the changelog entry and other documentation to reflect this.