You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Xiao Chen (JIRA)" <ji...@apache.org> on 2017/12/28 22:56:00 UTC

[jira] [Updated] (HADOOP-15149) CryptoOutputStream doesn't implement StreamCapabilities

     [ https://issues.apache.org/jira/browse/HADOOP-15149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xiao Chen updated HADOOP-15149:
-------------------------------
    Attachment: HADOOP-15149.01.patch

Thanks for reporting the issue and providing your analysis, [~mdrob]. I agree {{CryptoOutputStream}} seems to be missing the {{StreamCapabilities}} related implementation.

Patch 1 to add a fix and a test - the capabilities varies for different test classes, so added just to {{TestCryptoStreams}} instead of {{CryptoStreamsTestBase}}

> CryptoOutputStream doesn't implement StreamCapabilities
> -------------------------------------------------------
>
>                 Key: HADOOP-15149
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15149
>             Project: Hadoop Common
>          Issue Type: Task
>          Components: fs
>    Affects Versions: 3.0.0
>            Reporter: Mike Drob
>            Assignee: Xiao Chen
>         Attachments: HADOOP-15149.01.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org