ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-18403) YAML Maps Can Include Dashes and Other Non-Word Characters
Date Thu, 15 Sep 2016 16:53:21 GMT

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

Hadoop QA commented on AMBARI-18403:
------------------------------------

{color:green}+1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12828661/AMBARI-18403.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:green}+1 tests included{color}.  The patch appears to include 1 new or modified
test files.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of
javac compiler warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number
of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in ambari-server.

Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/8684//testReport/
Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/8684//console

This message is automatically generated.

> YAML Maps Can Include Dashes and Other Non-Word Characters
> ----------------------------------------------------------
>
>                 Key: AMBARI-18403
>                 URL: https://issues.apache.org/jira/browse/AMBARI-18403
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.5.0
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Critical
>             Fix For: 2.5.0
>
>         Attachments: AMBARI-18403.patch
>
>
> AMBARI-18366 introduced a pattern to match in when converting properties to YAML which
looks for Maps of Maps. Example:
> {noformat}
> foo : 
>   bar : 
>     [baz]
>   foobar :
>     [biz]
> {noformat}
> However, this does not take into account non-word characters such as dashes. The regex
should be revised to look for specific markers for the map-within-a-map, allowing for non-space
characters as keys. The following should pass:
> {noformat}
> storm-cluster  :  
>   hosts:
>     [c6401.ambari.apache.org, c6402.ambari.apache.org, c6403-master.ambari.apache.org]
>   groups:
>     [hadoop, hadoop-secure]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message