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

Race condition when auto-sweep is started [CORE4134] #4461

Closed
firebird-automations opened this issue Jun 29, 2013 · 4 comments
Closed

Race condition when auto-sweep is started [CORE4134] #4461

firebird-automations opened this issue Jun 29, 2013 · 4 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @hvlad

When concurrent transactions detects sweep condition and starts an asyncronous sweep process there is race condition present which could lead to the unneeded effects:
- a lot of sweep threads could be started (and perform attach\detach calls)
- in SS concurrent sweep threads could be serialized inside isc_attach_database and then run sequentially few times a whole sweep process
- a lot of threads could lead to out of memory condition, especially at 32-bit process

Commits: 5254e36 67dc3c1 caa6998 8a9cebb 8a3450e c12e731 FirebirdSQL/fbt-repository@ab1270d FirebirdSQL/fbt-repository@05e3d3c FirebirdSQL/fbt-repository@c58b21d FirebirdSQL/fbt-repository@a65b2f6 FirebirdSQL/fbt-repository@5f9191e FirebirdSQL/fbt-repository@a7a4514

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

Fix Version: 2.5.3 [ 10461 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

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