Bug #78184 FORMATTING ERROR IN OS_FILE_WRITE_PAGE()
Submitted: 24 Aug 2015 10:06 Modified: 27 Aug 2015 14:18
Reporter: Naga Satyanarayana Bodapati Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S3 (Non-critical)
Version:5.7 OS:Any
Assigned to: CPU Architecture:Any

[24 Aug 2015 10:06] Naga Satyanarayana Bodapati
Description:
he error messages in os_file_write_page() has been converted from C-style (fprintf()) to C++ Style (ib::errror() <<..")

There is left over "%d" in the message and error messages are shows it. For example:

2015-08-21T07:50:44.109462Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2015-08-21T07:50:44.109529Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2015-08-21T07:50:44.112400Z 0 [Warning] InnoDB: 4194304 bytes should have been written. Only 212992 bytes written. Retrying for the remaining bytes.
2015-08-21T07:50:44.112426Z 0 [Warning] InnoDB: Retry attempts for writing partial data failed.
2015-08-21T07:50:44.112438Z 0 [ERROR] InnoDB: Write to file ./ibtmp1failed at offset 0.4194304 bytes should have been written, only 212992 were written. Operating system error number 28. Check that your OS and file system support files of this size. Check also that the disk is not full or a disk quota exceeded.
2015-08-21T07:50:44.112474Z 0 [ERROR] InnoDB: Error number 28%d means 'No space left on device'
2015-08-21T07:50:44.112486Z 0 [Note] InnoDB: Some operating system error numbers are described at http://dev.mysql.com/doc/refman/5.8/en/operating-system-error-codes.html
2015-08-21T07:50:44.112920Z 0 [ERROR] InnoDB: Could not set the file size of './ibtmp1'. Probably out of disk space
2015-08-21T07:50:44.112942Z 0 [ERROR] InnoDB: Unable to create the shared innodb_temporary
2015-08-21T07:50:44.112959Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2015-08-21T07:50:44.714344Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2015-08-21T07:50:44.714379Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2015-08-21T07:50:44.714388Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2015-08-21T07:50:44.714398Z 0 [ERROR] Failed to initialize plugins.
2015-08-21T07:50:44.714403Z 0 [ERROR] Aborting

2015-08-21T07:50:44.714419Z 0 [Note] Binlog end
2015-08-21T07:50:44.714530Z 0 [Note] Shutting down plugin 'CSV'

Also, there's an unnecessary use of '.' after displaying the offset value.

How to repeat:
read os_file_write_page()
[27 Aug 2015 14:18] Daniel Price
Posted by developer:
 
Fixed as of the upcoming 5.7.9, 5.8.0 releases, and here's the changelog entry:

Error message formatting was corrected in the os_file_write_page()
function.