You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Shubham Chaurasia (JIRA)" <ji...@apache.org> on 2019/05/07 04:22:00 UTC

[jira] [Created] (HIVE-21698) TezSessionState#ensureLocalResources() causes IndexOutOfBoundsException while localizing resources

Shubham Chaurasia created HIVE-21698:
----------------------------------------

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


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
(v7.6.3#76005)