Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid "I/O error during "write" operation" entries in firebird.log but no database error exists [CORE4101] #4429

Closed
firebird-automations opened this issue May 22, 2013 · 9 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @hvlad

Commits: c2cec20 52ca2d8 FirebirdSQL/fbt-repository@85ec9b2 FirebirdSQL/fbt-repository@9972e95

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

summary: firebird.log contrains "I/O error during "write" operation" records but database works corrrectly => firebird.log contains "I/O error during "write" operation" records but database works correctly

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

The issue happens when:
- direct I/O mode is active for database (i.e. its page buffers number is more than FileSystemCacheThreshold value)
- database file is about to grow
- disk driver enforced rule that for direct IO memory buffers must be aligned on the system page size boundary (far
not all drivers checks this rule, therefore bug was not detected when direct IO feature was developed and tested)

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

Fix Version: 2.5.3 [ 10461 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Sean Leyne (seanleyne)

Modified the "Summary" to be stress the "invalid" nature of the issue (make the case less "severe" sounding)

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

summary: firebird.log contains "I/O error during "write" operation" records but database works correctly => Invalid "I/O error during "write" operation" entries in firebird.log but no database error exists

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Sean,

entries in firebird.log is not invalid, they are points to the wrong parameters passed into system call (pwrite in this case).
Database correctness is not affected as error happens only when database file is extends and engine fill with zero's
newly allocated space (before any attempt to use this space).

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: No test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment