Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-6476

o.a.h.io.Text - setCapacity does not shrink size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      The internal byte array of o.a.h.io.Text does not shrink , if we set a capacity that is less than the size of the internal byte array.

      • If input length for setCapacity < length of byte array - then the byte array is reset.
      • Existing data is retained depending on if keepData variable is set.
      • 4 new test cases added for various capacity sizes

      Attachments

        1. HADOOP-6476.patch
          4 kB
          Karthik K
        2. HADOOP-6476.patch
          3 kB
          Karthik K
        3. HADOOP-6476.patch
          4 kB
          Karthik K

        Activity

          People

            Unassigned Unassigned
            kaykay.unique Karthik K
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: