You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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.)
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.
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.
We need to forward the discussion referred at #13 (comment) for it. Could you join the discussion on the dev@arrow.apache.org mailing list?
I am interested in this capability for the Rust version of arrow-flight-sql. A timeout would not meet our requirements. I would suggest some type of on_close event that the client calls on the server as it is closing. If I can help please let me know.
Thanks @kou, the CloseSession command is exactly what I was looking for. I have 2 questions:
Is this implemented for arrow-rs? I do not believe so as CloseSession does not appear in the codebase.
Is there an example you can point me to?
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.
I've opened apache/arrow-rs#12237 to add standard CloseSession support to the Rust Flight SQL client and server.
For this PostgreSQL adapter, Arrow C++ already provides the CloseSession hook, so the remaining work would be to implement session cleanup here.
@kou, is this still something you'd like to support? I'm considering working on it, but before committing time, I'd like to check whether you'd be available to review a PR and whether there are any CI or compatibility issues I should address first.
Activity
lidavidm commentedon Feb 9, 2023
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.
lidavidm commentedon Feb 9, 2023
Actually, I think James's proposal already covers this fully: https://lists.apache.org/thread/fd6r1n7vt91sg2c7fr35wcrsqz6x4645
Would you like to follow up there?
kou commentedon Feb 10, 2023
Thanks!
I missed the discussion. I'll reply on the thread.
kou commentedon Apr 12, 2023
Note: Session timeout instead of closing session explicitly is implemented for now.
zhjwpku commentedon Sep 16, 2023
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?
kou commentedon Sep 19, 2023
No there isn't.
We need to forward the discussion referred at #13 (comment) for it. Could you join the discussion on the
dev@arrow.apache.orgmailing list?kou commentedon Oct 25, 2023
Ah, apache/arrow#34817 is a proposed implementation.
I thought that it's not related to #13 (comment) discussion.
cisaacson commentedon Oct 4, 2024
I am interested in this capability for the Rust version of
arrow-flight-sql. A timeout would not meet our requirements. I would suggest some type ofon_closeevent that the client calls on the server as it is closing. If I can help please let me know.kou commentedon Oct 5, 2024
apache/arrow#34817 has been merged.
So we can implement https://arrow.apache.org/docs/format/FlightSql.html#flight-server-session-management for explicit close.
cisaacson commentedon Oct 5, 2024
Thanks @kou, the
CloseSessioncommand is exactly what I was looking for. I have 2 questions:arrow-rs? I do not believe so asCloseSessiondoes not appear in the codebase.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.
cisaacson commentedon Oct 5, 2024
I don't know if this is the right place to report this, but the latest version of
masterforarrow-rsdoes not compile:If I should post it somewhere else let me know.
kou commentedon Oct 6, 2024
We need the followings for explicit close:
CloseSessionin https://github.com/apache/arrow-rsCloseSessionin this repositoryCould you report
arrow-rserror to https://github.com/apache/arrow-rs/issues ?cisaacson commentedon Oct 6, 2024
@kou Sure, I will report it there.
cisaacson commentedon Oct 6, 2024
This issue can be closed as it has been reported in the
arrow-rsproject.kou commentedon Oct 7, 2024
This issue isn't for
arrow-rs.So we should not close this until we implement
CloseSessionin this repository.Phoenix500526 commentedon Nov 13, 2026
I've opened apache/arrow-rs#12237 to add standard CloseSession support to the Rust Flight SQL client and server.
For this PostgreSQL adapter, Arrow C++ already provides the CloseSession hook, so the remaining work would be to implement session cleanup here.
@kou, is this still something you'd like to support? I'm considering working on it, but before committing time, I'd like to check whether you'd be available to review a PR and whether there are any CI or compatibility issues I should address first.
kou commentedon Nov 15, 2026
Yes. I'll review the PR. I've fixed CI for it.
kou commentedon Nov 16, 2026
Ah, sorry. We miss a feature in apache/arrow to test this feature: apache/arrow#55627
I'll implement it later.