[jira] [Updated] (YARN-852) TestAggregatedLogFormat.testContainerLogsFileAccess fails on Windows

2013-06-19 Thread Chuan Liu (JIRA)

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

Chuan Liu updated YARN-852:
---

Attachment: YARN-852-trunk.patch

Attaching a patch that fixes the two problems mentioned in the description.

 TestAggregatedLogFormat.testContainerLogsFileAccess fails on Windows
 

 Key: YARN-852
 URL: https://issues.apache.org/jira/browse/YARN-852
 Project: Hadoop YARN
  Issue Type: Bug
Reporter: Chuan Liu
Assignee: Chuan Liu
Priority: Minor
 Attachments: YARN-852-trunk.patch


 The YARN unit test case fails on Windows when comparing expected message with 
 log message in the file. The expected message constructed in the test case 
 has two problems: 1) it uses Path.separator to concatenate path string. 
 Path.separator is always a forward slash, which does not match the backslash 
 used in the log message. 2) On Windows, the default file owner is 
 Administrators group if the file is created by an Administrators user. The 
 test expect the user to be the current user.

--
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


[jira] [Updated] (YARN-852) TestAggregatedLogFormat.testContainerLogsFileAccess fails on Windows

2013-06-19 Thread Chris Nauroth (JIRA)

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

Chris Nauroth updated YARN-852:
---

Target Version/s: 3.0.0, 2.1.0-beta
Hadoop Flags: Reviewed

+1 for the patch.  I verified the test on Mac and Windows.  Thanks, Chuan!  
I'll commit this shortly.

 TestAggregatedLogFormat.testContainerLogsFileAccess fails on Windows
 

 Key: YARN-852
 URL: https://issues.apache.org/jira/browse/YARN-852
 Project: Hadoop YARN
  Issue Type: Bug
Affects Versions: 3.0.0, 2.1.0-beta
Reporter: Chuan Liu
Assignee: Chuan Liu
Priority: Minor
 Attachments: YARN-852-trunk.patch, YARN-852-trunk.patch


 The YARN unit test case fails on Windows when comparing expected message with 
 log message in the file. The expected message constructed in the test case 
 has two problems: 1) it uses Path.separator to concatenate path string. 
 Path.separator is always a forward slash, which does not match the backslash 
 used in the log message. 2) On Windows, the default file owner is 
 Administrators group if the file is created by an Administrators user. The 
 test expect the user to be the current user.

--
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