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/02 08:17:00 UTC

[jira] [Created] (IMPALA-7388) JNI THROW_IF_ERROR macros use local scope variables which likely conflict

Todd Lipcon created IMPALA-7388:
-----------------------------------

             Summary: 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


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