<?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 Re: Impala Lock contention error while running Refresh Command in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Impala-Lock-contention-error-while-running-Refresh-Command/m-p/345033#M234337</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/12885"&gt;@mszurap&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your detailed explanation this certainly helps.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2022 05:50:26 GMT</pubDate>
    <dc:creator>Amn_468</dc:creator>
    <dc:date>2022-06-06T05:50:26Z</dc:date>
    <item>
      <title>Impala Lock contention error while running Refresh Command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-Lock-contention-error-while-running-Refresh-Command/m-p/344955#M234315</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;We are observing Impala CatalogException: Error refreshing metadata for table due to lock contention errors on our Cluster.&lt;/P&gt;&lt;P&gt;Came across this article - &lt;A href="https://community.cloudera.com/t5/Support-Questions/Impala-Error-updating-the-catalog-due-to-lock-contention/td-p/329310" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Impala-Error-updating-the-catalog-due-to-lock-contention/td-p/329310&lt;/A&gt; upon checking the suggestions made by Cloudera Tech - load_catalog_in_background is already unchecked nor do we find any error for JVM Pause in Catalogue Logs&lt;BR /&gt;Java Heap Size of Catalog Server in Bytes = 28G&lt;BR /&gt;CDH 6.3.3&lt;/P&gt;&lt;P&gt;Would appreciate any help in understanding why this happens and ways to fix this.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:46:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-Lock-contention-error-while-running-Refresh-Command/m-p/344955#M234315</guid>
      <dc:creator>Amn_468</dc:creator>
      <dc:date>2022-09-16T14:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Impala Lock contention error while running Refresh Command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-Lock-contention-error-while-running-Refresh-Command/m-p/344976#M234318</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/32334"&gt;@Amn_468&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The lock contention happens when there are too many "invalidate metadata" (IM) and "refresh" commands running. The catalog daemon's responsibility is to load the Hive Metastore metadata (hive table and partition information, including stats) and the HDFS metadata (list of files and their block locations). If a table is refreshed (or a table is loaded for the first time after an IM) then catalogd has to load these metadata information, and has some built-in limits and has a max throughput how many tables and/or partitions/files it can handle (load). While doing so it needs to maintain a lock on the "catalog update", to avoid simultaneous requests to overwrite the previously collected information.&lt;/P&gt;&lt;P&gt;So if there are concurrent and long running "refresh" statements [1], then those can block each other and cause a delay in the publishing of the catalog information.&lt;/P&gt;&lt;P&gt;What can be done is to:&lt;/P&gt;&lt;P&gt;- reduce the number of IM calls&lt;/P&gt;&lt;P&gt;-&amp;nbsp;reduce the number of refresh calls&lt;/P&gt;&lt;P&gt;- wherever it is possible, use refresh on partition level only&lt;/P&gt;&lt;P&gt;- There were some improvements in&amp;nbsp;&lt;SPAN&gt;IMPALA-6671, which is available in CDP 7.1.7 SP1 version, so an upgrade could also help&amp;nbsp;(it still cannot completely help with high frequency, heavy refreshes)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this can help the discussions with the users/teams how frequently and when are they submitting the refresh queries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Miklos&lt;/P&gt;&lt;P&gt;Customer Operations Engieer, Cloudera&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1] &lt;A href="https://impala.apache.org/docs/build3x/html/topics/impala_refresh.html" target="_blank"&gt;https://impala.apache.org/docs/build3x/html/topics/impala_refresh.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 09:39:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-Lock-contention-error-while-running-Refresh-Command/m-p/344976#M234318</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2022-06-03T09:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Impala Lock contention error while running Refresh Command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-Lock-contention-error-while-running-Refresh-Command/m-p/345033#M234337</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/12885"&gt;@mszurap&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your detailed explanation this certainly helps.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 05:50:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-Lock-contention-error-while-running-Refresh-Command/m-p/345033#M234337</guid>
      <dc:creator>Amn_468</dc:creator>
      <dc:date>2022-06-06T05:50:26Z</dc:date>
    </item>
  </channel>
</rss>

