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

CryptoOutputStream should implement StreamCapabilities

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.1.0, 2.10.0, 2.9.1, 3.0.1
    • Component/s: fs
    • Labels:
      None
    • Hadoop Flags:
      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

            • Assignee:
              xiaochen Xiao Chen
              Reporter:
              mdrob Mike Drob

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment