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

Steve Loughran commented on HADOOP-15007:
-----------------------------------------

The problem I'm having with enums is the stack trace. If a property config is 
loaded in Hadoop 3.1 which contains a ref to a tag added in Hadoop 3.2, you'll 
get the stack trace above.

You aren't getting type safety, because the references in XML are just strings. 
What you can do in code is have a list of predefined const strings, so at least 
in our code & tests it can be referred to without typo risk.

> Stabilize and document Configuration <tag> element
> --------------------------------------------------
>
>                 Key: HADOOP-15007
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15007
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: conf
>    Affects Versions: 3.1.0
>            Reporter: Steve Loughran
>            Assignee: Anu Engineer
>            Priority: Blocker
>
> HDFS-12350 (moved to HADOOP-15005). Adds the ability to tag properties with a 
> <tag> value.
> We need to make sure that this feature is backwards compatible & usable in 
> production. That's docs, testing, marshalling etc.



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