You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hawq.apache.org by "Hongxu Ma (JIRA)" <ji...@apache.org> on 2017/07/24 09:13:00 UTC

[jira] [Commented] (HAWQ-1506) Fix multi-append bug

    [ https://issues.apache.org/jira/browse/HAWQ-1506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16098118#comment-16098118 ] 

Hongxu Ma commented on HAWQ-1506:
---------------------------------

After read code of HDFS (hadoop-common/src/main/java/org/apache/hadoop/crypto/CryptoOutputStream.java):
We should do updateEncryptor(calculate a correct counter for AES-CTR) when open a file.

It should fix this bug.

> Fix multi-append bug
> --------------------
>
>                 Key: HAWQ-1506
>                 URL: https://issues.apache.org/jira/browse/HAWQ-1506
>             Project: Apache HAWQ
>          Issue Type: Sub-task
>          Components: libhdfs
>            Reporter: Hongxu Ma
>            Assignee: Hongxu Ma
>             Fix For: 2.3.0.0-incubating
>
>
> Reproduction method:
> # Open a file with O_APPEND flag in encryption zone directory.
> # hdfsWrite() it multi-times.
> # Then read all file contents => only the first write content is correct.
> So we need to fix it.



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