CalvinKirs opened a new pull request, #64024:
URL: https://github.com/apache/doris/pull/64024
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: `test_auth_remote_ip` only needs to verify that Arrow
Flight SQL remote IP authentication allows a matched user to run `SELECT 1`.
The shared `sql_impl` helper uses `PreparedStatement`, and Arrow Flight SQL
JDBC 17 can report a close-time 8-byte client allocator leak after the prepared
path has already consumed the result. This changes the case to use
`JdbcUtils.executeQueryToList`, which uses
`createStatement().executeQuery(...)`, so the test avoids the prepared
statement cleanup path without ignoring `conn.close()` exceptions.
### Release note
None
### Check List (For Author)
- Test: Manual test
- `bash -n run-regression-test.sh`
- `/tmp/arrow-flight-close-repro` JDBC statement path against
`127.0.0.1:43080` repeated 10 times
- `./run-regression-test.sh --run -d arrow_flight_sql_p0 -s
test_auth_remote_ip -g arrow_flight_sql` failed in the current local cluster at
Arrow Flight SQL authentication: `Access denied for user
'[email protected]'`; it did not reach the `SELECT 1`/close
path.
- Behavior changed: No
- Does this need documentation: No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]