<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to ensure all resources are released when closing a Connection via DataBricks JDBC Driver? in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/how-to-ensure-all-resources-are-released-when-closing-a/m-p/17619#M338</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm building a Sink that uses the Databricks JDBC Driver version 2.6.27. It appears that regardless of using a try-with-resources block and explicitly closing the Connection, the driver's internals are not releasing IdleConnectionEvictor threads which are spawned per Connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connection.close() doesn't release the IdleConnectionEvictor thread:&lt;/P&gt;&lt;P&gt;app//com.databricks.client.jdbc42.internal.apache.http.impl.client.IdleConnectionEvictor$1.run(IdleConnectionEvictor.java:66)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you're spawning multiple Connections, you're left with these threads until Java process stop and restart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug or am I overlooking a step required by the DataBricks JDBC Driver?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: I'd post code but no markdown syntax seems to work in this DataBricks Community forum for me. There's no code formatting options when starting a new discussion either.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2022 10:34:47 GMT</pubDate>
    <dc:creator>jon1</dc:creator>
    <dc:date>2022-12-09T10:34:47Z</dc:date>
    <item>
      <title>How to ensure all resources are released when closing a Connection via DataBricks JDBC Driver?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-ensure-all-resources-are-released-when-closing-a/m-p/17619#M338</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm building a Sink that uses the Databricks JDBC Driver version 2.6.27. It appears that regardless of using a try-with-resources block and explicitly closing the Connection, the driver's internals are not releasing IdleConnectionEvictor threads which are spawned per Connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connection.close() doesn't release the IdleConnectionEvictor thread:&lt;/P&gt;&lt;P&gt;app//com.databricks.client.jdbc42.internal.apache.http.impl.client.IdleConnectionEvictor$1.run(IdleConnectionEvictor.java:66)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you're spawning multiple Connections, you're left with these threads until Java process stop and restart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug or am I overlooking a step required by the DataBricks JDBC Driver?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: I'd post code but no markdown syntax seems to work in this DataBricks Community forum for me. There's no code formatting options when starting a new discussion either.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 10:34:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-ensure-all-resources-are-released-when-closing-a/m-p/17619#M338</guid>
      <dc:creator>jon1</dc:creator>
      <dc:date>2022-12-09T10:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to ensure all resources are released when closing a Connection via DataBricks JDBC Driver?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-ensure-all-resources-are-released-when-closing-a/m-p/17620#M339</link>
      <description>&lt;P&gt;Following appears to be have been resolved in JDBC driver version 2.6.29 and newer. See &lt;A href="https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/jdbc/2.6.32/docs/release-notes.txt" alt="https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/jdbc/2.6.32/docs/release-notes.txt" target="_blank"&gt;release notes&lt;/A&gt; and the bug fix [SPARKJ-614] After closing HTTP connections, the driver does not clean up native threads.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 14:12:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-ensure-all-resources-are-released-when-closing-a/m-p/17620#M339</guid>
      <dc:creator>jon1</dc:creator>
      <dc:date>2022-12-19T14:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to ensure all resources are released when closing a Connection via DataBricks JDBC Driver?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-ensure-all-resources-are-released-when-closing-a/m-p/82865#M1480</link>
      <description>&lt;P&gt;Still not fixed got 14k instances of&amp;nbsp;com.databricks.client.jdbc42.internal.apache.http.impl.client.IdleConnectionEvictor 14,037 (0%) 673,776 B (0%) n/a And due to that application got to crashed. can you please help out as this is blocking to release databricks feature.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 12:27:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-ensure-all-resources-are-released-when-closing-a/m-p/82865#M1480</guid>
      <dc:creator>RakeshSen01</dc:creator>
      <dc:date>2024-08-13T12:27:22Z</dc:date>
    </item>
  </channel>
</rss>

