<?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: [KUDU] Does impala scan (READ_LATEST mode) inconsistency only arise during leader change? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/KUDU-Does-impala-scan-READ-LATEST-mode-inconsistency-only/m-p/62795#M13187</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20912"&gt;@awong&lt;/a&gt;，Thanks for your quick reply.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Dec 2017 01:22:28 GMT</pubDate>
    <dc:creator>tony12</dc:creator>
    <dc:date>2017-12-15T01:22:28Z</dc:date>
    <item>
      <title>[KUDU] Does impala scan (READ_LATEST mode) inconsistency only arise during leader change?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KUDU-Does-impala-scan-READ-LATEST-mode-inconsistency-only/m-p/62406#M13183</link>
      <description>&lt;P&gt;When I try to use impala to transfer massive data (about 100G) for one time and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;select count(1)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;immediately&lt;I&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;I get the wrong num. Then I execute the same sql again, the total count is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know besides&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;leader&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;change, is there have any other internal ops can cause the scan inconsistency? If I change the impala configure&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;kudu_read_mode: READ_LATEST&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;to&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;kudu_read_mode:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;READ_AT_SNAPSHOT&lt;/EM&gt;&lt;/STRONG&gt;,&amp;nbsp; what's the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;timestamp&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;that the impala will transimit? If the&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;READ_AT_SNAPSHOT&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;can resolve the issue?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the impala 2.10.0 + kudu 1.5.0.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:35:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KUDU-Does-impala-scan-READ-LATEST-mode-inconsistency-only/m-p/62406#M13183</guid>
      <dc:creator>tony12</dc:creator>
      <dc:date>2022-09-16T12:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: [KUDU] Does impala scan (READ_LATEST mode) inconsistency only arise during leader change?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KUDU-Does-impala-scan-READ-LATEST-mode-inconsistency-only/m-p/62570#M13184</link>
      <description>Leadership changes don't necessarily cause inconsistent results.&lt;BR /&gt;READ_LATEST doesn't guarantee consistency because when a scan gets sent to&lt;BR /&gt;a replica (not necessarily the leader), that replica will respond with the&lt;BR /&gt;latest data it has available (rather than at a specific timestamp). If that&lt;BR /&gt;replica is being caught up or is behind in terms replication for some&lt;BR /&gt;reason, this will be a stale result.&lt;BR /&gt;&lt;BR /&gt;For more info about Impala's READ_AT_SNAPSHOT behavior, check out&lt;BR /&gt;IMPALA-3788 . From one&lt;BR /&gt;of the comments: "the client will pick a ts that is after the latest&lt;BR /&gt;observed session ts (propagated and set with SetLatestObservedTimestamp()&lt;BR /&gt;by the previous commit for IMPALA-3788) and perform a snapshot read at that&lt;BR /&gt;time." It seems this is still somewhat experimental, but at least should&lt;BR /&gt;provide some reasonable guarantees (i.e. "read-your-writes").&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Dec 2017 18:57:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KUDU-Does-impala-scan-READ-LATEST-mode-inconsistency-only/m-p/62570#M13184</guid>
      <dc:creator>awong</dc:creator>
      <dc:date>2017-12-07T18:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: [KUDU] Does impala scan (READ_LATEST mode) inconsistency only arise during leader change?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KUDU-Does-impala-scan-READ-LATEST-mode-inconsistency-only/m-p/62752#M13185</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20912" target="_self"&gt;awong&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;READ_LATEST doesn't guarantee consistency because when a scan gets sent to a replica (not necessarily the leader), that replica will respond with the latest data it has available (rather than at a specific timestamp). If that replica is being caught up or is behind in terms replication for some reason, this will be a stale result.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. You mean the impala 2.10 always choose the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;ReplicaSelection.CLOSEST_REPLICA &lt;/STRONG&gt;&lt;/EM&gt;to build the scanner ? because I only use impala to insert and select.&lt;/P&gt;&lt;P&gt;2. If the scanner choose&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;ReplicaSelection.LEADER_ONLY&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;and&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt; READ_LATEST&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to build, only the leadership change will cause the scan inconsistency?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Best regards,&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 01:28:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KUDU-Does-impala-scan-READ-LATEST-mode-inconsistency-only/m-p/62752#M13185</guid>
      <dc:creator>tony12</dc:creator>
      <dc:date>2017-12-14T01:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: [KUDU] Does impala scan (READ_LATEST mode) inconsistency only arise during leader change?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KUDU-Does-impala-scan-READ-LATEST-mode-inconsistency-only/m-p/62753#M13186</link>
      <description>1. The default in Impala appears to be CLOSEST_REPLICA. As I understand it,&lt;BR /&gt;this means that the Kudu scanners used by Impala will try to use replicas&lt;BR /&gt;that are on the same node as the scanner if any such replicas exist, and&lt;BR /&gt;select replicas randomly otherwise. Perhaps someone with more context on&lt;BR /&gt;Impala can chime in here.&lt;BR /&gt;&lt;BR /&gt;2. Right, e.g. if leader A gets network partitioned from the other nodes&lt;BR /&gt;{B, C, D} such that the other nodes are able to elect a new leader, and at&lt;BR /&gt;the same time, a client uses its cached leader A and scans A in LEADER_ONLY&lt;BR /&gt;mode, then the results will be stale in comparison to any progress made by&lt;BR /&gt;{B, C, D}. There may be more scenarios that might demonstrate what you're&lt;BR /&gt;asking about, but I think this one fits.&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Dec 2017 02:48:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KUDU-Does-impala-scan-READ-LATEST-mode-inconsistency-only/m-p/62753#M13186</guid>
      <dc:creator>awong</dc:creator>
      <dc:date>2017-12-14T02:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: [KUDU] Does impala scan (READ_LATEST mode) inconsistency only arise during leader change?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KUDU-Does-impala-scan-READ-LATEST-mode-inconsistency-only/m-p/62795#M13187</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20912"&gt;@awong&lt;/a&gt;，Thanks for your quick reply.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 01:22:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KUDU-Does-impala-scan-READ-LATEST-mode-inconsistency-only/m-p/62795#M13187</guid>
      <dc:creator>tony12</dc:creator>
      <dc:date>2017-12-15T01:22:28Z</dc:date>
    </item>
  </channel>
</rss>

