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-issue-importer opened this issue Sep 18, 2007 · 4 comments

Comments

@firebird-issue-importer

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Sep 18, 2007

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 26, 2007

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 28, 2008

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 19, 2016

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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants