Gopal V created HIVE-21005:
------------------------------

             Summary: LLAP: Reading more stripes per-split leaks ZlibCodecs
                 Key: HIVE-21005
                 URL: https://issues.apache.org/jira/browse/HIVE-21005
             Project: Hive
          Issue Type: Bug
            Reporter: Gopal V


OrcEncodedDataReader - calls ensureDataReader in a loop, overwriting itself

{code}
    for (int stripeIxMod = 0; stripeIxMod < stripeRgs.length; ++stripeIxMod) {
....
        // 6.2. Ensure we have stripe metadata. We might have read it before 
for RG filtering.
        if (stripeMetadatas != null) {
          stripeMetadata = stripeMetadatas.get(stripeIxMod);
        } else {
...
          ensureDataReader();
...
        }
{code}

{code}
  private void ensureDataReader() throws IOException {
...
    stripeReader = orcReader.encodedReader(
        fileKey, dw, dw, useObjectPools ? POOL_FACTORY : null, trace, 
useCodecPool, cacheTag);
{code}

creates new encodedReader without closing previous stripe's encoded reader.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to