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

oneByteBuf in CryptoInputStream and CryptoOutputStream should be non static

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      A common optimization in the io classes for Input/Output Streams is to save a single length-1 byte array to use in single byte read/write calls.

      CryptoInputStream and CryptoOutputStream both attempt to follow this practice but mistakenly mark the array as static. That means that only a single instance of each can be present in a JVM safely.

      Attachments

        1. HADOOP-11674.1.patch
          2 kB
          Sean Busbey

        Activity

          People

            busbey Sean Busbey
            busbey Sean Busbey
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: