Bug #82017 Wrong error code from STOP BACKUP
Submitted: 27 Jun 2016 11:49 Modified: 8 Jul 2016 10:55
Reporter: Mikael Ronström Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:7.5.3 OS:Any
Assigned to: CPU Architecture:Any

[27 Jun 2016 11:49] Mikael Ronström
Description:
When we stop a backup we sometimes write a few bytes to the backup data file before stopping.
This results in FSAPPENDREF with error code 2812 when using O_DIRECT. This is the wrong error
code returned.

This is mainly of concern since it causes our test suites to report errors.

How to repeat:
Run autotest

Suggested fix:
Ensure that we don't write to O_DIRECT files unless the alignment is correct.
[8 Jul 2016 10:55] Jon Stephens
Documented fix as follows in the NDB 7.5.4 changelog:

    When executing STOP BACKUP it is possible sometimes that a few
    bytes are written to the backup data file before the backup
    actually terminates. When this happened while using O_DIRECT, the
    wrong error code was returned. Now in such cases, nothing is
    written to any O_DIRECT files unless the alignment is correct.

Closed.