Arpit Agarwal created HDDS-1860:
-----------------------------------

             Summary: importContainer hard-codes KeyValue Container classes
                 Key: HDDS-1860
                 URL: https://issues.apache.org/jira/browse/HDDS-1860
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
            Reporter: Arpit Agarwal


importContainer should use the same instantiation logic as the DataNode startup 
code. It should not hard-code the KeyValueContainer classes:
{code}
    KeyValueContainerData containerData =
        new KeyValueContainerData(containerID,
            maxSize, originPipelineId, originNodeId);

    KeyValueContainer container = new KeyValueContainer(containerData,
        conf);
{code}

This will break when we revision the container layout. Also making the 
instantiation logic shared will save code.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to