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

Use a thread-local cache in TokenIdentifier#getBytes to avoid creating many DataOutputBuffer objects

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 2.4.0
    • None
    • None
    • None

    Description

      We can use a thread-local cache in TokenIdentifier#getBytes to avoid creating many DataOutputBuffer objects. This will reduce our memory usage (for example, when loading edit logs), and help prevent OOMs.

      Attachments

        1. HADOOP-10587.001.patch
          2 kB
          Colin McCabe

        Activity

          People

            cmccabe Colin McCabe
            cmccabe Colin McCabe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: