You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Harsh J (JIRA)" <ji...@apache.org> on 2011/07/17 14:22:59 UTC

[jira] [Resolved] (HADOOP-2221) Configuration.toString is broken

     [ 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