Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21005

LLAP: Reading more stripes per-split leaks ZlibCodecs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • llap
    • None

    Description

      OrcEncodedDataReader - calls ensureDataReader in a loop, overwriting itself

          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();
      ...
              }
      
        private void ensureDataReader() throws IOException {
      ...
          stripeReader = orcReader.encodedReader(
              fileKey, dw, dw, useObjectPools ? POOL_FACTORY : null, trace, useCodecPool, cacheTag);
      

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

      Attachments

        1. HIVE-21005.patch
          0.9 kB
          Nita Dembla

        Activity

          People

            ndembla Nita Dembla
            gopalv Gopal Vijayaraghavan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: