You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Prasanth Jayachandran (JIRA)" <ji...@apache.org> on 2015/02/01 05:15:35 UTC

[jira] [Reopened] (HIVE-9151) Checking s against null in TezJobMonitor#getNameWithProgress() should be done earlier

     [ https://issues.apache.org/jira/browse/HIVE-9151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Prasanth Jayachandran reopened HIVE-9151:
-----------------------------------------

> Checking s against null in TezJobMonitor#getNameWithProgress() should be done earlier
> -------------------------------------------------------------------------------------
>
>                 Key: HIVE-9151
>                 URL: https://issues.apache.org/jira/browse/HIVE-9151
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Prasanth Jayachandran
>            Priority: Minor
>         Attachments: HIVE-9151.1.patch
>
>
> {code}
>     int spaceRemaining = COLUMN_1_WIDTH - s.length() - 1;
>     String trimmedVName = s;
>     // if the vertex name is longer than column 1 width, trim it down
>     // "Tez Merge File Work" will become "Tez Merge File.."
>     if (s != null && s.length() > COLUMN_1_WIDTH) {
> {code}
> s is dereferenced first, rendering the null check ineffective.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)