hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mukul Kumar Singh (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-11835) Block Storage: Overwrite of blocks fails
Date Tue, 16 May 2017 17:15:04 GMT
Mukul Kumar Singh created HDFS-11835:

             Summary: 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

Overwrite of blocks fails, because "OverWriteRequested" flag is not set during chunk creation.
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=

This flag needs to be set here 
public static void writeSmallFile(XceiverClientSpi client, String containerName,
      String key, byte[] data, String traceID) throws IOException {
    ChunkInfo chunk = ChunkInfo
        .setChunkName(key + "_chunk")

This message was sent by Atlassian JIRA

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

View raw message