hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()
Date Wed, 14 Mar 2012 01:32:38 GMT

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

Hadoop QA commented on HADOOP-8168:

-1 overall.  Here are the results of testing the latest attachment 
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 eclipse:eclipse.  The patch built with eclipse:eclipse.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit

    -1 core tests.  The patch failed these unit tests:

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/707//testReport/
Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/707//console

This message is automatically generated.
> empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()
> -------------------------------------------------------------------------------------------------------
>                 Key: HADOOP-8168
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8168
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.24.0, 0.23.1
>            Reporter: Eugene Koontz
>         Attachments: HADOOP-8168.patch
> In {{adjustColumnWidths()}}, we set the member variable {{lineFormat}}, which is used
by {{ProcessPath()}} to print directory entries. Owners and groups are formatted using the
formatting conversion {{%-Xs}}, where X is the max length of the owner or group. However,
when trying this with an S3 URL, I found that the owner and group were empty (""). This caused
X to be 0, which means that the formatting conversion is set to {{%-0s}}. This caused a {{MissingFormatWidthException}}
to be thrown when the formatting string was used in {{ProcessPath()}}. 
> Formatting conversions are described here: 
> http://docs.oracle.com/javase/1.6.0/docs/api/java/util/Formatter.html#intFlags
> The specific exception thrown (a subtype of {{IllegalFormatException}}) is described
> http://docs.oracle.com/javase/1.6.0/docs/api/java/util/MissingFormatWidthException.html

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message