<?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>question Why Impala JDBC close() and execute() with synchronized in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Why-Impala-JDBC-close-and-execute-with-synchronized/m-p/366607#M239636</link>
    <description>&lt;P&gt;I use&amp;nbsp;Impala JDBC to query, I find&amp;nbsp;&amp;nbsp;close() and execute() with synchronized. So if I invoke close() in other thread will wait execute() ，because if&amp;nbsp;execute() is running，close() will blocked waiting for lock. So I should invoke cancal() before close() to avoid&amp;nbsp; block?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 13:50:22 GMT</pubDate>
    <dc:creator>hqbhoho</dc:creator>
    <dc:date>2023-03-21T13:50:22Z</dc:date>
    <item>
      <title>Why Impala JDBC close() and execute() with synchronized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Why-Impala-JDBC-close-and-execute-with-synchronized/m-p/366607#M239636</link>
      <description>&lt;P&gt;I use&amp;nbsp;Impala JDBC to query, I find&amp;nbsp;&amp;nbsp;close() and execute() with synchronized. So if I invoke close() in other thread will wait execute() ，because if&amp;nbsp;execute() is running，close() will blocked waiting for lock. So I should invoke cancal() before close() to avoid&amp;nbsp; block?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 13:50:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Why-Impala-JDBC-close-and-execute-with-synchronized/m-p/366607#M239636</guid>
      <dc:creator>hqbhoho</dc:creator>
      <dc:date>2023-03-21T13:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why Impala JDBC close() and execute() with synchronized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Why-Impala-JDBC-close-and-execute-with-synchronized/m-p/366640#M239640</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104147"&gt;@hqbhoho&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our Impala experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/12885"&gt;@mszurap&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/9634"&gt;@bbreak&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 16:45:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Why-Impala-JDBC-close-and-execute-with-synchronized/m-p/366640#M239640</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-03-21T16:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why Impala JDBC close() and execute() with synchronized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Why-Impala-JDBC-close-and-execute-with-synchronized/m-p/366641#M239641</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104147"&gt;@hqbhoho&lt;/a&gt;&amp;nbsp;, if the query is executing, it probably makes sense to cancel it before you try to call close.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 16:54:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Why-Impala-JDBC-close-and-execute-with-synchronized/m-p/366641#M239641</guid>
      <dc:creator>bbreak</dc:creator>
      <dc:date>2023-03-21T16:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why Impala JDBC close() and execute() with synchronized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Why-Impala-JDBC-close-and-execute-with-synchronized/m-p/366663#M239647</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/9634"&gt;@bbreak&lt;/a&gt;&amp;nbsp; thanks, I will try. In my case, I wan't call close to close a statement. execute and close will call in&amp;nbsp;different thread. So Why&amp;nbsp;&lt;SPAN&gt;synchronized both close and execute? Now close will not work before execute&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Y2IQFc"&gt;complete&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 01:06:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Why-Impala-JDBC-close-and-execute-with-synchronized/m-p/366663#M239647</guid>
      <dc:creator>hqbhoho</dc:creator>
      <dc:date>2023-03-22T01:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why Impala JDBC close() and execute() with synchronized</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Why-Impala-JDBC-close-and-execute-with-synchronized/m-p/367026#M239759</link>
      <description>&lt;P&gt;Closing the connection while the query is still executing is generally not good practice. Think of it as taking ownership for the query you've executed, sort of like turning the lights off before you leave a room. If you're going to close the session (leave the room), you need to first cancel the query that's consuming resources (turn off the lights you turned on). The normal expectation is that an executing query will have an associated active session.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 20:40:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Why-Impala-JDBC-close-and-execute-with-synchronized/m-p/367026#M239759</guid>
      <dc:creator>bbreak</dc:creator>
      <dc:date>2023-03-27T20:40:24Z</dc:date>
    </item>
  </channel>
</rss>

