Repository navigation
Commit 221a0af
[test](arrow-flight) Close the plain Flight SQL session in the table types suite
### What problem does this PR solve?
Issue Number: None
Related PR: #67899
Problem Summary: test_table_types_over_arrow_flight calls GetTableTypes
through a plain Flight SQL client. authenticateBasicToken opens a Doris
session in the Flight connection pool, and the suite then closed only the
client and the allocator. Closing the transport does not call CloseSession,
so each run left one session of the test user registered until wait_timeout.
The other arrow_flight_sql_p0 suites that use a plain Flight client close
their sessions.
Fix: end the session in a finally block with
closeSession(new CloseSessionRequest(), token), the way the drivers do,
before the client and the allocator close.
On a local cluster, the ArrowFlightSQL sessions in SHOW PROCESSLIST grow by
two per run of the suite before this change (the framework's Flight SQL JDBC
connection and the leaked one) and by one after it.
### Release note
None
### Check List (For Author)
- Test: Regression test
- test_table_types_over_arrow_flight passes on a local cluster with this
PR's FE, before and after the change; SHOW PROCESSLIST as above
- Behavior changed: No
- Does this need documentation: No
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 1258c51 commit 221a0af
1 file changed
Lines changed: 27 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
120 | 123 | | |
121 | 124 | | |
| 125 | + | |
122 | 126 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
130 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
131 | 138 | | |
132 | | - | |
133 | 139 | | |
134 | 140 | | |
135 | 141 | | |
0 commit comments