Skip to content

ArrowFlightSqlClientHandler.close() performs a CloseSession RPC that can fail during gRPC channel shutdown - similar to ARROW-17785 #863

@vandop

Description

@vandop

Describe the bug, including details regarding any error messages, version, and platform.

Just like in this issue:
apache/arrow#33012

there are still codepaths that trigger a faulty shutdown when using CATALOG_ID with tools like JMeter which outputs a message like this one and prevents the test run from succeeding.

Thread Name:Warmup 1-1
Sample Start:2025-09-12 15:28:27 IST
Load time:1060
Connect Time:1060
Latency:0
Size in bytes:66
Sent bytes:0
Headers size in bytes:0
Body size in bytes:66
Sample Count:1
Error Count:1
Data type ("text"|"bin"|""):text
Response code:null 0
Response message:java.sql.SQLException: Cannot create PoolableConnectionFactory (Channel shutdown invoked)

SampleResult fields:
ContentType: text/plain
DataEncoding: UTF-8

I'll submit a PR with a similar approach to:
https://github.com/apache/arrow/pull/14210/commits

for the additional code path.

Metadata

Metadata

Assignees

Labels

Type: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions