You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Ivan Mitic (JIRA)" <ji...@apache.org> on 2012/10/23 11:09:14 UTC

[jira] [Updated] (HADOOP-8960) TestMetricsServlet fails on Windows

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

Ivan Mitic updated HADOOP-8960:
-------------------------------

    Attachment: HADOOP-8960.branch-trunk-win.patch

Attaching the patch.

Test fails because MetricsServlet output contains '\r\n' line endings on Windows while the test expects '\n'.

To avoid having an {{if WINDOWS}} fork in the test, I changed the MetricsServlet not use to {{println}} but instead to explicitly insert '\n' as line ending.
                
> TestMetricsServlet fails on Windows
> -----------------------------------
>
>                 Key: HADOOP-8960
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8960
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: metrics
>    Affects Versions: trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Ivan Mitic
>         Attachments: HADOOP-8960.branch-trunk-win.patch
>
>
> This appears to be caused by an incorrect assumption of line terminator in an assertion.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira