Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1175

BinaryData keeps a thread local reference after completing a compare, preventing compared arrays from being GC'd

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.2
    • 1.7.3
    • java
    • None

    Description

      BinaryData holds on to BinaryDecoders as thread local variables (so it doesn't have to make new ones for each compare?). When a compare is completed, the BinaryDecoder still keeps a reference to the ByteArrayByteSource, which stops its underlying byte array from being garbage collected.

      This is causing an OutOfMemoryError in reducers when shuffling with MR2.

      Attachments

        1. AVRO-1175.patch
          4 kB
          Doug Cutting

        Activity

          People

            cutting Doug Cutting
            sandyr Sandy Ryza
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: