hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sankar Hariappan (Jira)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-21698) TezSessionState#ensureLocalResources() causes IndexOutOfBoundsException while localizing resources
Date Fri, 23 Aug 2019 15:45:00 GMT

    [ https://issues.apache.org/jira/browse/HIVE-21698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16914370#comment-16914370
] 

Sankar Hariappan commented on HIVE-21698:
-----------------------------------------

+1,  [^HIVE-21698.2.patch] LGTM.

> TezSessionState#ensureLocalResources() causes IndexOutOfBoundsException while localizing
resources
> --------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-21698
>                 URL: https://issues.apache.org/jira/browse/HIVE-21698
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor, Tez
>    Affects Versions: 3.1.1
>            Reporter: Shubham Chaurasia
>            Assignee: Naresh P R
>            Priority: Major
>         Attachments: HIVE-21698.1.patch, HIVE-21698.2.patch, HIVE-21698.patch
>
>
> The cause of exception is due to [this loops over|https://github.com/apache/hive/blob/rel/release-3.1.1/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionState.java#L633]
{{newFilesNotFromConf}} and tries to access {{newResources.get(i)}} in that.
> Size of {{newResources}} is determined by [utils.localizeTempFiles() here|https://github.com/apache/hive/blob/rel/release-3.1.1/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionState.java#L629]
which may return a smaller list depending upon the {{skipFilesFromConf}} and this would result
in {{newResources.size()}} < {{newFilesNotFromConf.length}} causing IndexOutOfBounds.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message