hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <>
Subject [jira] [Updated] (HIVE-6016) Hadoop23Shims has a bug in listLocatedStatus impl.
Date Thu, 12 Dec 2013 23:31:10 GMT


Ashutosh Chauhan updated HIVE-6016:

       Resolution: Fixed
    Fix Version/s: 0.13.0
           Status: Resolved  (was: Patch Available)

Committed to trunk. Thanks, Prasanth!

> Hadoop23Shims has a bug in listLocatedStatus impl.
> --------------------------------------------------
>                 Key: HIVE-6016
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Shims
>    Affects Versions: 0.13.0
>            Reporter: Sushanth Sowmyan
>            Assignee: Prasanth J
>             Fix For: 0.13.0
>         Attachments: HIVE-6016.1.patch
> Prashant and I discovered that the implementation of the wrapping Iterator in listLocatedStatus
is broken.
> Basically, if you had files (a,b,_s) , with a filter that is supposed to filter out _s,
we expect an output result of (a,b). Instead, we get (a,b,null), with hasNext looking at the
next value to see if it's null, and using that to decide if it has any more entries, and thus,
(a,b,_s) becomes (a,b).
> There's a boundary condition on the very first pick, which causes a (_s,a,b) to result
in (_s,a,b), bypassing the filter, and thus, we wind up with a resultant unfiltered (_s,a,b)
which orc breaks on.
> The effect of this bug is that Orc will not be able to read directories where there is
a _SUCCESS file, say, as the first entry returned by the FileStatus.

This message was sent by Atlassian JIRA

View raw message