-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add support for closing a database (session) #13
Comments
I've been working on a set of new proposals for Flight SQL. I think we should address this as part of that. I don't want us to enforce statefulness if possible, because that runs counter to how gRPC/Flight work. So the server should still be able to deal with clients that do not send the close action. |
Actually, I think James's proposal already covers this fully: https://lists.apache.org/thread/fd6r1n7vt91sg2c7fr35wcrsqz6x4645 Would you like to follow up there? |
Thanks! |
Note: Session timeout instead of closing session explicitly is implemented for now. |
I tried this extension and noticed that each executor will last for 5 minutes due to session timeout, I glanced the FlightSqlServerBase class a little bit, if it has a method knows the client's close action, then we can use it to close the executor. Is there any capability in arrow flight that we can use now? |
No there isn't. |
Ah, apache/arrow#34817 is a proposed implementation. |
I am interested in this capability for the Rust version of |
apache/arrow#34817 has been merged. |
Thanks @kou, the
If I can help with an example I would be happy to do that, for implementing the Rust version it may be better for someone more familiar with the codebase than me. And thanks for all the work on this. |
I don't know if this is the right place to report this, but the latest version of
If I should post it somewhere else let me know. |
We need the followings for explicit close:
Could you report |
@kou Sure, I will report it there. |
This issue can be closed as it has been reported in the |
This issue isn't for |
It seems that Apache Arrow Flight SQL doesn't provide a command that closes the current session explicitly:
https://arrow.apache.org/docs/format/FlightSql.html
In https://lists.apache.org/thread/0w25o85y8vsndz87kpjljxz24x077o3y , using a custom (close) action was suggested.
@lidavidm Is using a custom close action still a suggested approach to close the current session? I have a concern about this approach. If each Apache Arrow Flight SQL server implementation uses different custom close action, users can't use a general Apache Arrow Flight SQL client including ADBC to use Apache Arrow Flight SQL servers. (Users need to implement a custom close action for each Apache Arrow Flight SQL server.)
The text was updated successfully, but these errors were encountered: