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

Hudson commented on HDFS-11835:
-------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #14057 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/14057/])
HDFS-11835. Block Storage: Overwrite of blocks fails. Contributed by (cliang: 
rev 914ceb25871d7dc9b9e27cf184eac32efbcbe285)
* (edit) 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/cblock/TestBufferManager.java
* (edit) 
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/scm/storage/ContainerProtocolCalls.java


> Block Storage: Overwrite of blocks fails
> ----------------------------------------
>
>                 Key: HDFS-11835
>                 URL: https://issues.apache.org/jira/browse/HDFS-11835
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs
>            Reporter: Mukul Kumar Singh
>            Assignee: Mukul Kumar Singh
>            Priority: Major
>         Attachments: HDFS-11835-HDFS-7240.001.patch
>
>
> Overwrite of blocks fails, because "OverWriteRequested" flag is not set 
> during chunk creation.
> {code}
> 2017-05-16 22:33:23,909 [nioEventLoopGroup-5-2] ERROR      - Rejecting write 
> chunk request. Chunk overwrite without explicit request. 
> ChunkInfo{chunkName='1_chunk, offset=0, len=
> 11933}
> {code}
> This flag needs to be set here 
> {code}
> public static void writeSmallFile(XceiverClientSpi client, String 
> containerName,
>       String key, byte[] data, String traceID) throws IOException {
> .....
>     ChunkInfo chunk = ChunkInfo
>         .newBuilder()
>         .setChunkName(key + "_chunk")
>         .setOffset(0)
>         .setLen(data.length)
>         .build();
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to