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-automations opened this issue Jun 3, 2007 · 11 comments
Closed

Comments

@firebird-automations
Copy link
Collaborator

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-automations
Copy link
Collaborator Author

Modified by: @hvlad

Link: This issue relate to CORE1300 [ CORE1300 ]

@firebird-automations
Copy link
Collaborator Author

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-automations
Copy link
Collaborator Author

Modified by: @hvlad

Attachment: CORE1299.create_db.sql [ 10410 ]

Attachment: CORE1299.test_db.sql [ 10411 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

Fix Version: 2.0.2 [ 10130 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

Fix Version: 2.0.2 [ 10130 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: maziar (maziar)

Link: This issue relate to CORE1616 [ CORE1616 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is duplicated by CORE1616 [ CORE1616 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@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