[MDEV-3129] LP:632971 - maria_read_log fails to create MAI files Created: 2010-09-08  Updated: 2015-02-02  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Philip Stoev (Inactive) Assignee: Michael Widenius
Resolution: Won't Fix Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug632971.xml    

 Description   

In certain instances maria_read_log -a fails to create any MAI files but still reports success.

Examination with strace reveals the following calls:

open("/tmp/test/table100000_maria_key_pk_parts_2_int_autoinc#P#p0.MAI", O_RDWR) = -1 ENOENT (No such file or directory)
open("/tmp/test/table100000_maria_int_autoinc.MAI", O_RDWR) = -1 ENOENT (No such file or directory)
open("/tmp/test/table100000_maria_key_pk_parts_2_int_autoinc#P#p1.MAI", O_RDWR) = -1 ENOENT (No such file or directory)

It seems that this happens when the first part of the log is not available to maria_read_log because it was rotated out. In this case, -a should fail with a suitable error message rather than just do nothing. Errors from open() should be handled and reported.



 Comments   
Comment by Michael Widenius [ 2011-12-01 ]

Re: maria_read_log fails to create MAI files
The above is ok as the files are assumed to be deleted after the log entry was done.

Comment by Rasmus Johansson (Inactive) [ 2011-12-01 ]

Launchpad bug id: 632971

Generated at Thu Feb 08 06:46:31 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.