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

AV in Classic server after long idle period when using long running read committed readonly transaction [CORE911] #1310

Closed
firebird-automations opened this issue Aug 30, 2006 · 13 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @hvlad

Relate to CORE1657

Attachments:
Tip_AV.cpp
Tip_AV.dpr

TIP cache used by read committed transactions can have an gaps in it if CS process have an long idle period and opened read committed readonly transaction. When process awakens and that transaction perform some operation AV can occurs

To make it happen we need 4 conditions to meet together:
1. Classic server.
2. Read committed readonly transactions.
3. Client which has long running read committed readonly transactions.
4. Idle period long enough to OIT can advanced by some TIP pages by another processes

Commits: e3962ab 99d7c71 b4b0488

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Attached source of delphi console application demonstrated the bug

To reproduce - compile, open command prompt, set ISC_USER and ISC_PASSWORD environment variables and run compiled binary. It have only parameter - connect string to database (which is about to be create).

I.e :

cmd
fb_inet_server -a
SET ISC_USER=...
SET ISC_PASSWORD=...
tip_av \\.\c:\tip_av.fdb

WI-V6.3.2.4731 Firebird 1.5
Unable to complete network request to host ".".
Error writing data to the connection.
The pipe is being closed.

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

Attachment: Tip_AV.dpr [ 10124 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

status: In Progress [ 3 ] => Open [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

Fix Version: 2.0 RC5 [ 10071 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Fix Version: 1.5.4 [ 10100 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pmakowski

Q/A tested ok

@firebird-automations
Copy link
Collaborator Author

Modified by: @pmakowski

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

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Testcase using firebird public API.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

Attachment: Tip_AV.cpp [ 10730 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

Link: This issue relate to CORE1657 [ CORE1657 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 11179 ] => Firebird [ 15020 ]

@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