hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mingliang Liu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-10556) DistCpOptions should be validated automatically
Date Wed, 22 Jun 2016 00:55:57 GMT
Mingliang Liu created HDFS-10556:

             Summary: DistCpOptions should be validated automatically
                 Key: HDFS-10556
                 URL: https://issues.apache.org/jira/browse/HDFS-10556
             Project: Hadoop HDFS
          Issue Type: Bug
    Affects Versions: 2.8.0
            Reporter: Mingliang Liu
            Assignee: Mingliang Liu

{{DistCpOptions}} can be set from command-line or may be set manually. In [HDFS-10397], we
refactored the validation to make it simpler and more efficient. However, the newly added
{{validate()}} method may not be automatically revoked. This is the major concern for existing
downstreams that create the {{DistCpOptions}} manually instead of by parser, and have conflicting

This jira is to make the validation happen automatically. A simple fix is to use the approach
that validates in individual setters. This is a fix for {{branch-2}}. As a long-term fix,
in [HDFS-10533], we're making the {{DistCpOptions}} immutable so that it will be hard, if
not impossible, to use it wrongly by downstream applications. However, that code will only
go to {{trunk}} branch as it breaks backwards-compatibility.

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