[ https://issues.apache.org/jira/browse/YARN-8327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16481367#comment-16481367 ]
Giovanni Matteo Fumarola edited comment on YARN-8327 at 5/21/18 4:02 PM: ------------------------------------------------------------------------- Before the patch: !file:///C:/Users/gifuma/AppData/Local/Temp/msohtmlclip1/01/clip_image001.png|width=486,height=111! After the patch: !image-2018-05-18-16-52-08-250.png! I validated in Linux as well. The length of System.lineSeparator() in Windows is equal to 2 while in Linux is 1. In the logline, there are 2 consecutive line separators that in Windows are converted to \r\n\n. Due to this, I changed every *\n* but one. was (Author: giovanni.fumarola): Before the patch: !image-2018-05-18-16-51-47-324.png! After the patch: !image-2018-05-18-16-52-08-250.png! I validated in Linux as well. The length of System.lineSeparator() in Windows is equal to 2 while in Linux is 1. In the logline, there are 2 consecutive line separators that in Windows are converted to \r\n\n. Due to this, I changed every *\n* but one. > Fix TestAggregatedLogFormat#testReadAcontainerLogs1 on Windows > -------------------------------------------------------------- > > Key: YARN-8327 > URL: https://issues.apache.org/jira/browse/YARN-8327 > Project: Hadoop YARN > Issue Type: Bug > Components: log-aggregation > Reporter: Giovanni Matteo Fumarola > Assignee: Giovanni Matteo Fumarola > Priority: Major > Attachments: YARN-8327.v1.patch, image-2018-05-18-16-52-08-250.png > > > TestAggregatedLogFormat#testReadAcontainerLogs1 fails on Windows because of > the line separator. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org