Skip to content

GH-1039: [Flight] Fix ClassCastException when building FlightClient with domain socket location#1121

Open
ennuite wants to merge 3 commits intoapache:mainfrom
ennuite:uds-bug
Open

GH-1039: [Flight] Fix ClassCastException when building FlightClient with domain socket location#1121
ennuite wants to merge 3 commits intoapache:mainfrom
ennuite:uds-bug

Conversation

@ennuite
Copy link
Copy Markdown
Contributor

@ennuite ennuite commented Apr 20, 2026

What's Changed

Fix a ClassCastException onFlightClient.builder().build() when connecting via a Unix domain socket on Linux (epoll) or macOS (kqueue), by casting to the Netty interface Channel instead of the server-specific ServerChannel.

Also adds netty-transport-native-epoll (Linux) and netty-transport-native-kqueue (macOS) as test-scoped dependencies in flight-core via OS-activated profiles, so the existing TestServerOptions#domainSocket test actually runs instead of being skipped everywhere.

Closes #1039.

@github-actions
Copy link
Copy Markdown

Thank you for opening a pull request!

Please label the PR with one or more of:

  • bug-fix
  • chore
  • dependencies
  • documentation
  • enhancement

Also, add the 'breaking-change' label if appropriate.

See CONTRIBUTING.md for details.

@ennuite ennuite marked this pull request as ready for review April 20, 2026 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Java][Flight] ClassCastException in FlightClient when using Epoll Domain Socket: EpollDomainSocketChannel incorrectly cast to ServerChannel

1 participant