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

Wrong index entries order at non-leaf b-tree pages [CORE1299] #1720

Closed
firebird-issue-importer opened this issue Jun 3, 2007 · 11 comments
Closed

Comments

@firebird-issue-importer
Copy link

@firebird-issue-importer firebird-issue-importer commented Jun 3, 2007

Submitted by: @hvlad

Relate to CORE1300
Is duplicated by CORE1616

Attachments:
CORE-1299.create_db.sql
CORE-1299.test_db.sql

Sometimes parent page contains nodes pointed at lower level pages in wrong order.
For example parent page nodes order A, B, C, D while at lower level pages linked in order A, C, B, D

This error can be detected by gfix. It reports in firebird.log 6 errors for the same index page for each such case :

Index XXX is corrupt on page YYY level 1\. File: \\Fb2\\fb2\.0\\src\\jrd\\validation\.cpp, line: 1656
Index XXX is corrupt on page YYY level 1\. File: \\Fb2\\fb2\.0\\src\\jrd\\validation\.cpp, line: 1646
Index XXX is corrupt on page YYY level 1\. File: \\Fb2\\fb2\.0\\src\\jrd\\validation\.cpp, line: 1656
Index XXX is corrupt on page YYY level 1\. File: \\Fb2\\fb2\.0\\src\\jrd\\validation\.cpp, line: 1646
Index XXX is corrupt on page YYY level 1\. File: \\Fb2\\fb2\.0\\src\\jrd\\validation\.cpp, line: 1656
Index XXX is corrupt on page YYY level 1\. File: \\Fb2\\fb2\.0\\src\\jrd\\validation\.cpp, line: 1646

(line number as per 2.0 sources)

This error itself can't lead to wrong query results, AFAIK, but i don't know if it can lead to more serious corruptions being present in actively modified index for a long time

Commits: ce54f65 512a33e

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 3, 2007

Modified by: @hvlad

Link: This issue relate to CORE1300 [ CORE1300 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 3, 2007

Commented by: @hvlad

Edit database file name in both scripts.
Ensure firebird.conf have set GCPolicy = combined (default value)
Start superserver engine
Create test database by CORE1299.create_db.sql
Run CORE1299.test_db.sql and gfix -v -f after it.
If gfix detect no errors - make few more runs of CORE1299.test_db.sql

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 3, 2007

Modified by: @hvlad

Attachment: CORE1299.create_db.sql [ 10410 ]

Attachment: CORE1299.test_db.sql [ 10411 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 3, 2007

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

Fix Version: 2.0.2 [ 10130 ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 19, 2007

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 12, 2007

Modified by: @hvlad

Fix Version: 2.0.2 [ 10130 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 25, 2007

Modified by: maziar (maziar)

Link: This issue relate to CORE1616 [ CORE1616 ]

@firebird-issue-importer
Copy link
Author

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

Modified by: @pcisar

Link: This issue is duplicated by CORE1616 [ CORE1616 ]

@firebird-issue-importer
Copy link
Author

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

Modified by: @pcisar

Link: This issue relate to CORE1616 [ CORE1616 ] =>

@firebird-issue-importer
Copy link
Author

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

Modified by: @pcisar

Workflow: jira [ 12272 ] => Firebird [ 15600 ]

@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