You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2018/08/14 04:16:00 UTC
[jira] [Resolved] (IMPALA-7388) JNI THROW_IF_ERROR macros use local
scope variables which likely conflict
[ https://issues.apache.org/jira/browse/IMPALA-7388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Todd Lipcon resolved IMPALA-7388.
---------------------------------
Resolution: Fixed
Fix Version/s: Impala 3.1.0
> JNI THROW_IF_ERROR macros use local scope variables which likely conflict
> -------------------------------------------------------------------------
>
> Key: IMPALA-7388
> URL: https://issues.apache.org/jira/browse/IMPALA-7388
> Project: IMPALA
> Issue Type: Bug
> Reporter: Todd Lipcon
> Assignee: Todd Lipcon
> Priority: Major
> Fix For: Impala 3.1.0
>
>
> The THROW_IF_ERROR macros all use a locally scoped variable "status". If they're called with a pattern like:
> {code:java}
> Status status = foo();
> THROW_IF_ERROR(status, ...){code}
>
> then the status variable inside the macro ends up being assigned to itself instead of the outer-scope variable. This makes it not throw or return, which is quite surprising.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org