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

CryptoOutputStream should implement StreamCapabilities

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.1.0, 2.10.0, 2.9.1, 3.0.1
    • fs
    • None
    • Reviewed

    Description

      Running some tests with HBase on HDFS with encryption, we noticed that CryptoOutputStream doesn't implement StreamCapabilities.

      Specifically, we have a HdfsDataOutputStream wrapping a CryptoOutputStream. The calls to hasCapability on the HDOS will always return false, even though the COS could be wrapping something that supports it, as evidenced by the implementation of hsync and hflush here.

      Attachments

        1. HADOOP-15149.01.patch
          6 kB
          Xiao Chen

        Issue Links

          Activity

            People

              xiaochen Xiao Chen
              mdrob Mike Drob
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: