tag:github.com,2008:https://github.com/cloudera/Impala/releasesRelease notes from Impala2020-01-15T15:40:42Ztag:github.com,2008:Repository/6282442/cdh6.3.3-release2020-01-15T15:40:42Zcdh6.3.3-release: IMPALA-8960: Fix test_owner_privileges::test_drop_if_exists on S3<p>hdfs:// URIs do not work on Impala's S3 tests. The fix is to drop<br>
the hdfs:// part of the URI. Our tests run against the default<br>
filesystem, so dropping the hdfs:// works on both HDFS test setups<br>
and S3 test setups.</p>
<p>Testing:</p>
<ul>
<li>Ran tests on S3</li>
<li>Ran test_owner_privileges.py on HDFS locally</li>
</ul>
<p>Change-Id: Id7be961094f03c5fde3f8b4c340814d26470818a<br>
Reviewed-on: <a href="http://gerrit.cloudera.org:8080/14334" rel="nofollow">http://gerrit.cloudera.org:8080/14334</a><br>
Reviewed-by: Michael Ho <a href="mailto:kwho@cloudera.com">kwho@cloudera.com</a><br>
Tested-by: Impala Public Jenkins <a href="mailto:impala-public-jenkins@cloudera.com">impala-public-jenkins@cloudera.com</a><br>
Reviewed-on: <a href="https://gerrit.sjc.cloudera.com/c/cdh/impala/+/66469" rel="nofollow">https://gerrit.sjc.cloudera.com/c/cdh/impala/+/66469</a><br>
API-Compat: Gabor Solya <a href="mailto:gsolya@cloudera.com">gsolya@cloudera.com</a><br>
CDH-Build: Gabor Solya <a href="mailto:gsolya@cloudera.com">gsolya@cloudera.com</a><br>
Reviewed-by: Gabor Solya <a href="mailto:gsolya@cloudera.com">gsolya@cloudera.com</a><br>
Quasar-L0: Gabor Solya <a href="mailto:gsolya@cloudera.com">gsolya@cloudera.com</a><br>
Tested-by: Gabor Solya <a href="mailto:gsolya@cloudera.com">gsolya@cloudera.com</a></p>joemcdonnelltag:github.com,2008:Repository/6282442/cdh6.3.2-release2019-11-06T21:14:57Zcdh6.3.2-release: CLOUDERA-BUILD. Preparing for 6.3.2 release.<p>Commit performed on <a href="https://master-01.jenkins.cloudera.com/" rel="nofollow">https://master-01.jenkins.cloudera.com/</a></p>
<p>Signed-off-by: cloudera <a href="mailto:cauldron-dev@cloudera.com">cauldron-dev@cloudera.com</a></p>unknowntag:github.com,2008:Repository/6282442/cdh6.3.1-release2019-09-18T09:43:30Zcdh6.3.1-release: CLOUDERA-BUILD. Preparing for 6.3.1 release.<p>Commit performed on <a href="https://master-01.jenkins.cloudera.com/" rel="nofollow">https://master-01.jenkins.cloudera.com/</a></p>
<p>Signed-off-by: cloudera <a href="mailto:cauldron-dev@cloudera.com">cauldron-dev@cloudera.com</a></p>unknowntag:github.com,2008:Repository/6282442/cdh6.2.1-release2019-08-28T06:56:33Zcdh6.2.1-release: CLOUDERA-BUILD. Preparing for 6.2.1 release.<p>Commit performed on <a href="https://master-01.jenkins.cloudera.com/" rel="nofollow">https://master-01.jenkins.cloudera.com/</a></p>
<p>Signed-off-by: cloudera <a href="mailto:cauldron-dev@cloudera.com">cauldron-dev@cloudera.com</a></p>unknowntag:github.com,2008:Repository/6282442/cdh6.3.0-release2019-06-26T09:14:06Zcdh6.3.0-release: CLOUDERA-BUILD. Preparing for 6.3.0 release.<p>Commit performed on <a href="https://master-01.jenkins.cloudera.com/" rel="nofollow">https://master-01.jenkins.cloudera.com/</a></p>
<p>Signed-off-by: cloudera <a href="mailto:cauldron-dev@cloudera.com">cauldron-dev@cloudera.com</a></p>unknowntag:github.com,2008:Repository/6282442/cdh5.16.2-release2019-04-24T18:45:08Zcdh5.16.2-release: IMPALA-8270: fix MemTracker teardown in FeSupport<p>This patch tries to simplify and standardise the order<br>
in which control structures are torn down. As a<br>
consequence the bug is fixed. I've described the bug<br>
below.</p>
<p>The changes are:</p>
<ul>
<li>Make more control structures owned directly by<br>
QueryState::obj_pool_, so that they are all<br>
destroyed at the same time via ~QueryState.</li>
<li>Tear down local_query_state_ explicitly before<br>
other destructors run.</li>
</ul>
<p>Either change is sufficient to fix the bug, but<br>
I preferred to do both to reduce the chances<br>
of similar bugs in future.</p>
<h1>Description of bug:</h1>
<p>In the normal query execution flow:</p>
<ul>
<li>RuntimeState is in QueryState::obj_pool_</li>
<li>RuntimeState owns RuntimeState::instance_mem_tracker_ via scoped_ptr</li>
<li>QueryState::query_mem_tracker_ is in QueryState::obj_pool_</li>
<li>QueryState::query_mem_tracker_ has a reference to<br>
RuntimeState::instance_mem_tracker_<br>
The tear-down works because ~QueryState unregisters query_mem_tracker_<br>
from its parent, making the whole subtree unreachable before destroying<br>
QueryState::obj_pool_. It is thus safe to destroy instance_mem_tracker_<br>
along with the rest of obj_pool_.</li>
</ul>
<p>FeSupport messes this up by having RuntimeState own the QueryState<br>
RuntimeState::local_query_state_ via a scoped_ptr, and the implied<br>
destructor order means that RuntimeState::instance_mem_tracker_ is<br>
destroyed before RuntimeState::local_query_state_, which breaks the<br>
above flow and the destroyed instance_mem_tracker_ is reachable from<br>
the process MemTracker via QueryState::query_mem_tracker_ for a<br>
small window until it is unregistered.</p>
<p>Testing:<br>
Added a backend test that reproduced the ASAN use-after-free<br>
failure when run against unmodified RuntimeState code. I did<br>
not make it a unified backend test so that it would be easier<br>
to backport this fix to older versions that don't have unified<br>
tests.</p>
<p>Change-Id: If815130cd4db00917746f10b28514f779ee254f0<br>
Reviewed-on: <a href="http://gerrit.cloudera.org:8080/13057" rel="nofollow">http://gerrit.cloudera.org:8080/13057</a><br>
Reviewed-by: Tim Armstrong <a href="mailto:tarmstrong@cloudera.com">tarmstrong@cloudera.com</a><br>
Reviewed-by: Joe McDonnell <a href="mailto:joemcdonnell@cloudera.com">joemcdonnell@cloudera.com</a><br>
Reviewed-by: Bikramjeet Vig <a href="mailto:bikramjeet.vig@cloudera.com">bikramjeet.vig@cloudera.com</a><br>
Tested-by: Impala Public Jenkins <a href="mailto:impala-public-jenkins@cloudera.com">impala-public-jenkins@cloudera.com</a><br>
Reviewed-on: <a href="https://gerrit.sjc.cloudera.com/c/Impala/+/44586" rel="nofollow">https://gerrit.sjc.cloudera.com/c/Impala/+/44586</a><br>
Tested-by: Tim Armstrong <a href="mailto:tarmstrong@cloudera.com">tarmstrong@cloudera.com</a><br>
(cherry picked from commit ec0c0050b390c3e78ca0b9c7052e6e25d227509a)<br>
Reviewed-on: <a href="https://gerrit.sjc.cloudera.com/c/Impala/+/44664" rel="nofollow">https://gerrit.sjc.cloudera.com/c/Impala/+/44664</a></p>timarmstrongtag:github.com,2008:Repository/6282442/cdh6.2.0-release2019-03-12T04:56:42Zcdh6.2.0-release: IMPALA-7972 Detect self-events to avoid unnecessary invalidates<p>This patch adds support to detect self-generated events from catalog.<br>
This is used to avoid unnecessary invalidates to the tables from such<br>
self-events. Currently, alter_table, alter_partition, add_partition and<br>
drop_partition event types can invalidate the table metadata.</p>
<p>Originally, we planned to have a global version number support from<br>
metastore (see HIVE-21115). But since that is still not complete, we<br>
rely on a combination of other identifiers to determine if a event is<br>
self-generated or not. These self-event identifiers consists of values<br>
from the table/partition parameters. A catalog service uuid<br>
and the catalog version number. The uuid is generated for each<br>
catalogservice when it comes up and it adds it to the table/partition<br>
parameters with the key "impala.CatalogServiceId". The catalog version<br>
number is added with the key "impala.CatalogVersion".</p>
<p>When catalog executes a DDL operation it appends the current catalog<br>
version to the list of version numbers for the in-flight events for the<br>
table. Events processor clears this version when the corresponding<br>
version number identified by serviceId is received in the event. This is<br>
needed since it is possible that a external non-Impala system which<br>
generates the event presents the same serviceId and version number later<br>
on. The algorithm to detect a self-event is as below.</p>
<ol>
<li>Add the service id and expected catalog version to table/partition<br>
parameters when executing the DDL operation. When the HMS operation is<br>
successful, add the version number to the list of version for in-flight<br>
events at table level.</li>
<li>When the event is received, the first time you see the combination of<br>
serviceId and version number, event processor clears the version number<br>
from table's list and determines the event as self-generated (and hence<br>
ignored)</li>
<li>If the event data presents a unknown serviceId or if the version<br>
number is not present in the list of in-flight versions, event is not a<br>
self-event and needs to be processed.</li>
</ol>
<p>In order to limit the total memory footprint, only 10 version numbers<br>
are stored at the table. Since the event processor is expected to poll<br>
every few seconds this should be a reasonable bound which satisfies most<br>
use-cases. Otherwise, event processor may wrongly process a self-event<br>
to invalidate the table. In such a case, its a performance penalty not a<br>
correctness issue.</p>
<p>In case of drop_partition event, the partition object is not available<br>
in the event. Hence we cannot determine if its a self-event. In such<br>
cases currently we always issue a invalidate command. This is a known<br>
limitation and will be improved in IMPALA-7973</p>
<p>Patch adds new tests to trigger alter table/partition DDLs from impala<br>
and makes sure that the table is not invalidated.</p>
<p>Change-Id: I29e487b903ba7493f90575c26c44a0019ff0362e<br>
Reviewed-on: <a href="https://gerrit.sjc.cloudera.com/42671" rel="nofollow">https://gerrit.sjc.cloudera.com/42671</a><br>
Tested-by: Jenkins User <a href="mailto:jenkins@cloudera.com">jenkins@cloudera.com</a><br>
CDH-Build: Jenkins User <a href="mailto:jenkins@cloudera.com">jenkins@cloudera.com</a><br>
Quasar-L0: Jenkins User <a href="mailto:jenkins@cloudera.com">jenkins@cloudera.com</a><br>
Reviewed-by: Vihang Karajgaonkar <a href="mailto:vihang@cloudera.com">vihang@cloudera.com</a></p>unknowntag:github.com,2008:Repository/6282442/cdh6.1.1-release2019-01-29T14:05:55Zcdh6.1.1-release: IMPALA-7943: Bump the default client timeout set on impala-shell<p>As part of IMPALA-7555, we added a default socket timeout of 5 seconds<br>
when connecting to an impalad. Under heavy load with kerberos and SSL<br>
enabled, we could hit this default timeout. This change bumps up the<br>
timeout to 60 secs to make the impala-shell more robust.</p>
<p>Change-Id: Ifc40069e86cbf93634320804efba003fb5551afe<br>
Reviewed-on: <a href="http://gerrit.cloudera.org:8080/12051" rel="nofollow">http://gerrit.cloudera.org:8080/12051</a><br>
Reviewed-by: Impala Public Jenkins <a href="mailto:impala-public-jenkins@cloudera.com">impala-public-jenkins@cloudera.com</a><br>
Reviewed-by: Lars Volker <a href="mailto:lv@cloudera.com">lv@cloudera.com</a><br>
Tested-by: Impala Public Jenkins <a href="mailto:impala-public-jenkins@cloudera.com">impala-public-jenkins@cloudera.com</a><br>
(cherry picked from commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/cloudera/Impala/commit/c2627ba469ccc01d2df40a7c9200839c918f9b0c/hovercard" href="https://github.com/cloudera/Impala/commit/c2627ba469ccc01d2df40a7c9200839c918f9b0c"><tt>c2627ba</tt></a>)<br>
Reviewed-on: <a href="https://gerrit.sjc.cloudera.com/41169" rel="nofollow">https://gerrit.sjc.cloudera.com/41169</a><br>
Tested-by: Jenkins User <a href="mailto:jenkins@cloudera.com">jenkins@cloudera.com</a><br>
CDH-Build: Jenkins User <a href="mailto:jenkins@cloudera.com">jenkins@cloudera.com</a><br>
Quasar-L0: Laszlo Gaal <a href="mailto:laszlo.gaal@cloudera.com">laszlo.gaal@cloudera.com</a><br>
Reviewed-by: Laszlo Gaal <a href="mailto:laszlo.gaal@cloudera.com">laszlo.gaal@cloudera.com</a><br>
(cherry picked from commit 3794d20f1ef24435b575aba56bda2023cee60fa4)<br>
Reviewed-on: <a href="https://gerrit.sjc.cloudera.com/41201" rel="nofollow">https://gerrit.sjc.cloudera.com/41201</a><br>
Quasar-L0: Jenkins User <a href="mailto:jenkins@cloudera.com">jenkins@cloudera.com</a></p>unknowntag:github.com,2008:Repository/6282442/cdh5.16.1-release2018-11-20T18:00:39Zcdh5.16.1-release: Updated save-version.sh for CDH5.16.1<p>Change-Id: Iddcd9cddc6c3529ebb4442fd4cd7ff30ed512a83<br>
Reviewed-on: <a href="https://gerrit.sjc.cloudera.com/39721" rel="nofollow">https://gerrit.sjc.cloudera.com/39721</a><br>
Reviewed-by: Bernadett Balogh <a href="mailto:bbalogh@cloudera.com">bbalogh@cloudera.com</a><br>
Tested-by: Bernadett Balogh <a href="mailto:bbalogh@cloudera.com">bbalogh@cloudera.com</a></p>bbalogh-cldrtag:github.com,2008:Repository/6282442/cdh5.15.2-release2018-11-13T09:32:41Zcdh5.15.2-release<p>Update thirdparty dependencies</p>cloudera-hudson