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

Database corruption possible when database file extension and read\write activity is performed simultaneously [CORE1468] #1885

Closed
firebird-automations opened this issue Sep 18, 2007 · 4 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @hvlad

SQL> CREATE DATABASE 'test.fdb';
SQL> CONNECT 'test.fdb';
Commit current transaction (y/n)?y
Committing.
Database: 'test.fdb'
SQL> CREATE TABLE TEST_TABLE (S CHAR(256));
SQL> SET TERM ^ ;
SQL> EXECUTE BLOCK AS
CON> DECLARE N INT = 1000000;
CON> DECLARE I INT = 0;
CON> DECLARE S CHAR(256);
CON> BEGIN
CON> S ='0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345';
CON> WHILE (I < N) DO
CON> BEGIN
CON> INSERT INTO TEST_TABLE VALUES (:S);
CON> I = I + 1;
CON> END
CON> END ^
SQL> SELECT COUNT(*) from TEST_TABLE ^

   COUNT

============
Statement failed, SQLCODE = -902
database file appears corrupt ()
-bad checksum
-checksum error on database page 447

Commits: 972926e ebb5520

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 13090 ] => Firebird [ 13948 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

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

No branches or pull requests

2 participants