hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harsh J (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HADOOP-2221) Configuration.toString is broken
Date Sun, 17 Jul 2011 12:22:59 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-2221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Harsh J resolved HADOOP-2221.
-----------------------------

    Resolution: Not A Problem

Nicholas - Yep, looks invalid given current state (0.23/trunk) of Configuration. Resources
and Default Resources are now loaded during toString ops.

{code}
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("Configuration: ");
    if(loadDefaults) {
      toString(defaultResources, sb);
      if(resources.size()>0) {
        sb.append(", ");
      }
    }
    toString(resources, sb);
    return sb.toString();
  }
{code}

Closing as Not-a-problem (anymore).

> Configuration.toString is broken
> --------------------------------
>
>                 Key: HADOOP-2221
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2221
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: conf
>    Affects Versions: 0.15.0
>            Reporter: Arun C Murthy
>            Assignee: Arun C Murthy
>         Attachments: HADOOP-2221_1_2007117.patch
>
>
> {{Configuration.toString}} doesn't string-ify the {{Configuration.resources}} field which
was added in HADOOP-785.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message