Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-43305: [FlightRPC][Java] Invocation of close method from ArrowFlightConnection throws a SQLException when using catalog as parameter #43306

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

scruz-denodo
Copy link

@scruz-denodo scruz-denodo commented Jul 17, 2024

Rationale for this change

Changes for solving issue apache/arrow-java#66. See that issue for details of the problem.

What changes are included in this PR?

Do not close the clientHandler twice at org.apache.arrow.driver.jdbc.ArrowFlightConnection#close. Second call should be removed because it clientHandler is already closed and the executor is shutdown.

Also, I changed the condition for calling to org.apache.arrow.flight.sql.FlightSqlClient#closeSession method. I do not see a reason why it has to be done only with the catalog was set.

Are these changes tested?

Still TODO. PR marked as draft for this reason.

Are there any user-facing changes?

Users can start to receive a SQLException when calling org.apache.arrow.driver.jdbc.ArrowFlightConnection#close.

… SQLException when using catalog as parameter #43305
Copy link

⚠️ GitHub issue apache/arrow-java#66 has been automatically assigned in GitHub to PR creator.

Copy link

⚠️ GitHub issue #43305 has no components, please add labels for components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant