René's URL Explorer Experiment


Title: JDBC driver: Closing a Connection does not close its Statement(s), potentially leading to exceptions related to memory leaks · Issue #932 · apache/arrow-java · GitHub

Open Graph Title: JDBC driver: Closing a Connection does not close its Statement(s), potentially leading to exceptions related to memory leaks · Issue #932 · apache/arrow-java

X Title: JDBC driver: Closing a Connection does not close its Statement(s), potentially leading to exceptions related to memory leaks · Issue #932 · apache/arrow-java

Description: Describe the bug, including details regarding any error messages, version, and platform. According to the JDBC specification 4.3 available at https://download.oracle.com/otn-pub/jcp/jdbc-4_3-mrel3-eval-spec/jdbc4.3-fr-spec.pdf, chapter 9...

Open Graph Description: Describe the bug, including details regarding any error messages, version, and platform. According to the JDBC specification 4.3 available at https://download.oracle.com/otn-pub/jcp/jdbc-4_3-mrel3-...

X Description: Describe the bug, including details regarding any error messages, version, and platform. According to the JDBC specification 4.3 available at https://download.oracle.com/otn-pub/jcp/jdbc-4_3-mrel3-...

Opengraph URL: https://github.com/apache/arrow-java/issues/932

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JDBC driver: Closing a Connection does not close its Statement(s), potentially leading to exceptions related to memory leaks","articleBody":"### Describe the bug, including details regarding any error messages, version, and platform.\n\nAccording to the JDBC specification 4.3 available at https://download.oracle.com/otn-pub/jcp/jdbc-4_3-mrel3-eval-spec/jdbc4.3-fr-spec.pdf, chapter 9.6.4.1:\n\n\u003e All Statement objects created from a given\nConnection object will be closed when the close method for the Connection\nobject is called.\n\nIn the Flight SQL JDBC driver closing a Connection does not automatically close the Statement instances obtained via that Connection, making it non compliant with the standard.\n\nDue to this non compliance, on closing a Connection that has a Statement with one or more ResultSet that haven't been fully consumed, we get an exception on `Connection.close()`\n\nCode to reproduce:\n\n`\n    try {\n\n      // Establish connection\n\n      Connection connection = DriverManager.getConnection(jdbcUrl, properties);\n      System.out.println(\"Connected to Arrow Flight SQL server\");\n\n      Statement stmt = connection.createStatement();\n      // my_table needs to have some rows for the bug to manifest itself\n      ResultSet rs = stmt.executeQuery(\"SELECT * FROM my_table\");\n      // adding this close will eliminate the memory leak, without needing to close the Statement\n      // rs.close();\n\n      // with stmt.close() we get no memory leak, even if we didn't close the ResultSet\n      //stmt.close();\n\n      connection.close();\n      System.out.println(\"\\nConnection closed\");\n\n    } catch (Exception e) {\n      System.err.println(\"Error: \" + e.getMessage());\n      e.printStackTrace();\n    }\n\n`\n\nResulting in the following exception and stack trace\n\n\n```\nDec 14, 2025 5:36:23 PM org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.BaseAllocator close\nSEVERE: Memory was leaked by query. Memory leaked: (32)\nAllocator(flight-client) 0/32/32/9223372036854775807 (res/actual/peak/limit)\n\nError: Failed to clean up client resources.\njava.sql.SQLException: Failed to clean up client resources.\n\tat org.apache.arrow.driver.jdbc.client.ArrowFlightSqlClientHandler.close(ArrowFlightSqlClientHandler.java:269)\n\tat org.apache.arrow.driver.jdbc.ArrowFlightConnection.close(ArrowFlightConnection.java:178)\n\tat MemoryLeak.main(MemoryLeak.java:136)\nCaused by: java.lang.IllegalStateException: Memory was leaked by query. Memory leaked: (32)\nAllocator(flight-client) 0/32/32/9223372036854775807 (res/actual/peak/limit)\n\n\tat org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.BaseAllocator.close(BaseAllocator.java:504)\n\tat org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.flight.FlightClient.close(FlightClient.java:744)\n\tat org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.util.AutoCloseables.close(AutoCloseables.java:97)\n\tat org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.util.AutoCloseables.close(AutoCloseables.java:75)\n\tat org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.flight.sql.FlightSqlClient.close(FlightSqlClient.java:1137)\n\tat org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.util.AutoCloseables.close(AutoCloseables.java:97)\n\tat org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.util.AutoCloseables.close(AutoCloseables.java:75)\n\tat org.apache.arrow.driver.jdbc.client.ArrowFlightSqlClientHandler.close(ArrowFlightSqlClientHandler.java:267)\n\t... 2 more\n\n\n```\n\nWhile a user of the driver with good defensive programming practice would open the ResultSet and/or Statement in a try-with block, the driver should still follow the standard and not produce this Exception.\n\nI believe this bug has been here since the creation of the driver, but I have confirmed that it occurs for both version 17.0.0 and 18.3.0 of the driver.\n\n\n\n\n","author":{"url":"https://github.com/ennuite","@type":"Person","name":"ennuite"},"datePublished":"2025-12-14T17:49:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/932/arrow-java/issues/932"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:49b9e62a-22f8-2253-60f1-c4e83e544605
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA3A8:A6D52:41B80F9:5D2C621:6A4FB566
html-safe-nonce197d1ae972e2f4ad9f90d6c74bd9f9593a91f058b82a1fbeea6d5a703fc36523
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0E4OkE2RDUyOjQxQjgwRjk6NUQyQzYyMTo2QTRGQjU2NiIsInZpc2l0b3JfaWQiOiI3MjIyNjE5ODc1MjIyNDY3OTQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac407cf3bb0dc4c35b183e41348678f217a09d815e6b7cc84ba49dba30ff62631d
hovercard-subject-tagissue:3727775892
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/arrow-java/932/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a01b138c2764c22d51c9638372ac39734004f9af44359b9888c8cb8d736408fa/apache/arrow-java/issues/932
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a01b138c2764c22d51c9638372ac39734004f9af44359b9888c8cb8d736408fa/apache/arrow-java/issues/932
og:image:altDescribe the bug, including details regarding any error messages, version, and platform. According to the JDBC specification 4.3 available at https://download.oracle.com/otn-pub/jcp/jdbc-4_3-mrel3-...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameennuite
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
go-importgithub.com/apache/arrow-java git https://github.com/apache/arrow-java.git
octolytics-dimension-user_id47359
octolytics-dimension-user_loginapache
octolytics-dimension-repository_id893682219
octolytics-dimension-repository_nwoapache/arrow-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id893682219
octolytics-dimension-repository_network_root_nwoapache/arrow-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/arrow-java/issues/932#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Farrow-java%2Fissues%2F932
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Farrow-java%2Fissues%2F932
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=apache%2Farrow-java
Reloadhttps://github.com/apache/arrow-java/issues/932
Reloadhttps://github.com/apache/arrow-java/issues/932
Reloadhttps://github.com/apache/arrow-java/issues/932
Please reload this pagehttps://github.com/apache/arrow-java/issues/932
apache https://github.com/apache
arrow-javahttps://github.com/apache/arrow-java
Notifications https://github.com/login?return_to=%2Fapache%2Farrow-java
Fork 133 https://github.com/login?return_to=%2Fapache%2Farrow-java
Star 91 https://github.com/login?return_to=%2Fapache%2Farrow-java
Code https://github.com/apache/arrow-java
Issues 422 https://github.com/apache/arrow-java/issues
Pull requests 44 https://github.com/apache/arrow-java/pulls
Discussions https://github.com/apache/arrow-java/discussions
Actions https://github.com/apache/arrow-java/actions
Security and quality 0 https://github.com/apache/arrow-java/security
Insights https://github.com/apache/arrow-java/pulse
Code https://github.com/apache/arrow-java
Issues https://github.com/apache/arrow-java/issues
Pull requests https://github.com/apache/arrow-java/pulls
Discussions https://github.com/apache/arrow-java/discussions
Actions https://github.com/apache/arrow-java/actions
Security and quality https://github.com/apache/arrow-java/security
Insights https://github.com/apache/arrow-java/pulse
#933https://github.com/apache/arrow-java/pull/933
JDBC driver: Closing a Connection does not close its Statement(s), potentially leading to exceptions related to memory leakshttps://github.com/apache/arrow-java/issues/932#top
#933https://github.com/apache/arrow-java/pull/933
Type: bugSomething isn't workinghttps://github.com/apache/arrow-java/issues?q=state%3Aopen%20label%3A%22Type%3A%20bug%22
19.0.0https://github.com/apache/arrow-java/milestone/3
https://github.com/ennuite
ennuitehttps://github.com/ennuite
on Dec 14, 2025https://github.com/apache/arrow-java/issues/932#issue-3727775892
https://download.oracle.com/otn-pub/jcp/jdbc-4_3-mrel3-eval-spec/jdbc4.3-fr-spec.pdfhttps://download.oracle.com/otn-pub/jcp/jdbc-4_3-mrel3-eval-spec/jdbc4.3-fr-spec.pdf
Type: bugSomething isn't workinghttps://github.com/apache/arrow-java/issues?q=state%3Aopen%20label%3A%22Type%3A%20bug%22
19.0.0https://github.com/apache/arrow-java/milestone/3
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.