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

For DSQL_unprepare and DSQL_drop, flush immediately [JDBC638] #668

Closed
firebird-automations opened this issue Mar 6, 2021 · 6 comments
Closed

Comments

@firebird-automations
Copy link

Submitted by: @mrotteveel

Is related to CORE6519

Currently, V11Statement#⁠free(int) will not flush the free packet, deferring it for later processing when something else is sent over the connection. This behaviour is similar to fbclient.dll. The downside of this is that, when you close a prepared statement (or 'unprepare' a statement) and then do nothing else with the connection for a long time, the statement will retain existence locks on metadata objects.

Flushing immediately for DSQL_drop and DSQL_unprepare (and maybe not for DSQL_close) has the advantage that the prepared statement and its existence locks are released immediately and not deferred until some later activity on the connection.

Commits: 1b7767a 787d52b c61b876

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

Fix Version: Jaybird 4.0.3 [ 10981 ]

Fix Version: Jaybird 3.0.11 [ 10980 ]

Fix Version: Jaybird 5 [ 10871 ]

@firebird-automations
Copy link
Author

Commented by: @mrotteveel

master: c61b876
Branch_4_0: 787d52b
Branch_3_0: 1b7767a

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

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

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Author

Commented by: @mrotteveel

See also thread: https://groups.google.com/g/firebird-java/c/DuIRTYJru7U

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

Link: This issue is related to CORE6519 [ CORE6519 ]

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment