[jira] [Updated] (YARN-4555) TestDefaultContainerExecutor#testContainerLaunchError fails on non-englihsh locale environment
[ https://issues.apache.org/jira/browse/YARN-4555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rohith Sharma K S updated YARN-4555: Component/s: test > TestDefaultContainerExecutor#testContainerLaunchError fails on non-englihsh > locale environment > -- > > Key: YARN-4555 > URL: https://issues.apache.org/jira/browse/YARN-4555 > Project: Hadoop YARN > Issue Type: Test > Components: nodemanager, test >Affects Versions: 2.7.1 >Reporter: Takashi Ohnishi >Assignee: Takashi Ohnishi >Priority: Minor > Attachments: YARN-4555.1.patch > > > In my env where LANG=ja_JP.UTF-8, the test fails with > {code} > --- > Test set: > org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor > --- > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.286 sec <<< > FAILURE! - in > org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor > testContainerLaunchError(org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor) > Time elapsed: 1.149 sec <<< FAILURE! > java.lang.AssertionError: Invalid Diagnostics message: Exception from > container-launch. > Container id: CONTAINER_ID > Exit code: 127 > Exception message: bash: > target/TestDefaultContainerExecutor/localDir/default_container_executor.sh: > そのようなファイルやディレクトリはありません > Stack trace: ExitCodeException exitCode=127: bash: > target/TestDefaultContainerExecutor/localDir/default_container_executor.sh: > そのようなファイルやディ>レクトリはありません > {code} > This is because the test code assertion assumes the English locale as below. > {code} > 250 public Object answer(InvocationOnMock invocationOnMock) > 251 throws Throwable { > 252 String diagnostics = (String) > invocationOnMock.getArguments()[0]; > 253 assertTrue("Invalid Diagnostics message: " + diagnostics, > 254 diagnostics.contains("No such file or directory")); > 255 return null; > 256 } > {code} > This exists on trunk, too. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (YARN-4555) TestDefaultContainerExecutor#testContainerLaunchError fails on non-englihsh locale environment
[ https://issues.apache.org/jira/browse/YARN-4555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rohith Sharma K S updated YARN-4555: Issue Type: Test (was: Sub-task) Parent: (was: YARN-4478) > TestDefaultContainerExecutor#testContainerLaunchError fails on non-englihsh > locale environment > -- > > Key: YARN-4555 > URL: https://issues.apache.org/jira/browse/YARN-4555 > Project: Hadoop YARN > Issue Type: Test > Components: nodemanager, test >Affects Versions: 2.7.1 >Reporter: Takashi Ohnishi >Assignee: Takashi Ohnishi >Priority: Minor > Attachments: YARN-4555.1.patch > > > In my env where LANG=ja_JP.UTF-8, the test fails with > {code} > --- > Test set: > org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor > --- > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.286 sec <<< > FAILURE! - in > org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor > testContainerLaunchError(org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor) > Time elapsed: 1.149 sec <<< FAILURE! > java.lang.AssertionError: Invalid Diagnostics message: Exception from > container-launch. > Container id: CONTAINER_ID > Exit code: 127 > Exception message: bash: > target/TestDefaultContainerExecutor/localDir/default_container_executor.sh: > そのようなファイルやディレクトリはありません > Stack trace: ExitCodeException exitCode=127: bash: > target/TestDefaultContainerExecutor/localDir/default_container_executor.sh: > そのようなファイルやディ>レクトリはありません > {code} > This is because the test code assertion assumes the English locale as below. > {code} > 250 public Object answer(InvocationOnMock invocationOnMock) > 251 throws Throwable { > 252 String diagnostics = (String) > invocationOnMock.getArguments()[0]; > 253 assertTrue("Invalid Diagnostics message: " + diagnostics, > 254 diagnostics.contains("No such file or directory")); > 255 return null; > 256 } > {code} > This exists on trunk, too. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (YARN-4555) TestDefaultContainerExecutor#testContainerLaunchError fails on non-englihsh locale environment
[ https://issues.apache.org/jira/browse/YARN-4555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Takashi Ohnishi updated YARN-4555: -- Issue Type: Sub-task (was: Bug) Parent: YARN-4478 > TestDefaultContainerExecutor#testContainerLaunchError fails on non-englihsh > locale environment > -- > > Key: YARN-4555 > URL: https://issues.apache.org/jira/browse/YARN-4555 > Project: Hadoop YARN > Issue Type: Sub-task > Components: nodemanager >Affects Versions: 2.7.1 >Reporter: Takashi Ohnishi >Assignee: Takashi Ohnishi >Priority: Minor > Attachments: YARN-4555.1.patch > > > In my env where LANG=ja_JP.UTF-8, the test fails with > {code} > --- > Test set: > org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor > --- > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.286 sec <<< > FAILURE! - in > org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor > testContainerLaunchError(org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor) > Time elapsed: 1.149 sec <<< FAILURE! > java.lang.AssertionError: Invalid Diagnostics message: Exception from > container-launch. > Container id: CONTAINER_ID > Exit code: 127 > Exception message: bash: > target/TestDefaultContainerExecutor/localDir/default_container_executor.sh: > そのようなファイルやディレクトリはありません > Stack trace: ExitCodeException exitCode=127: bash: > target/TestDefaultContainerExecutor/localDir/default_container_executor.sh: > そのようなファイルやディ>レクトリはありません > {code} > This is because the test code assertion assumes the English locale as below. > {code} > 250 public Object answer(InvocationOnMock invocationOnMock) > 251 throws Throwable { > 252 String diagnostics = (String) > invocationOnMock.getArguments()[0]; > 253 assertTrue("Invalid Diagnostics message: " + diagnostics, > 254 diagnostics.contains("No such file or directory")); > 255 return null; > 256 } > {code} > This exists on trunk, too. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (YARN-4555) TestDefaultContainerExecutor#testContainerLaunchError fails on non-englihsh locale environment
[ https://issues.apache.org/jira/browse/YARN-4555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Takashi Ohnishi updated YARN-4555: -- Attachment: YARN-4555.1.patch I've created a patch which set LANG=C for container executor shell script. > TestDefaultContainerExecutor#testContainerLaunchError fails on non-englihsh > locale environment > -- > > Key: YARN-4555 > URL: https://issues.apache.org/jira/browse/YARN-4555 > Project: Hadoop YARN > Issue Type: Bug > Components: nodemanager >Affects Versions: 2.7.1 >Reporter: Takashi Ohnishi >Assignee: Takashi Ohnishi >Priority: Minor > Attachments: YARN-4555.1.patch > > > In my env where LANG=ja_JP.UTF-8, the test fails with > {code} > --- > Test set: > org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor > --- > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.286 sec <<< > FAILURE! - in > org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor > testContainerLaunchError(org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor) > Time elapsed: 1.149 sec <<< FAILURE! > java.lang.AssertionError: Invalid Diagnostics message: Exception from > container-launch. > Container id: CONTAINER_ID > Exit code: 127 > Exception message: bash: > target/TestDefaultContainerExecutor/localDir/default_container_executor.sh: > そのようなファイルやディレクトリはありません > Stack trace: ExitCodeException exitCode=127: bash: > target/TestDefaultContainerExecutor/localDir/default_container_executor.sh: > そのようなファイルやディ>レクトリはありません > {code} > This is because the test code assertion assumes the English locale as below. > {code} > 250 public Object answer(InvocationOnMock invocationOnMock) > 251 throws Throwable { > 252 String diagnostics = (String) > invocationOnMock.getArguments()[0]; > 253 assertTrue("Invalid Diagnostics message: " + diagnostics, > 254 diagnostics.contains("No such file or directory")); > 255 return null; > 256 } > {code} > This exists on trunk, too. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (YARN-4555) TestDefaultContainerExecutor#testContainerLaunchError fails on non-englihsh locale environment
[ https://issues.apache.org/jira/browse/YARN-4555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Takashi Ohnishi updated YARN-4555: -- Description: In my env where LANG=ja_JP.UTF-8, the test fails with {code} --- Test set: org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor --- Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.286 sec <<< FAILURE! - in org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor testContainerLaunchError(org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor) Time elapsed: 1.149 sec <<< FAILURE! java.lang.AssertionError: Invalid Diagnostics message: Exception from container-launch. Container id: CONTAINER_ID Exit code: 127 Exception message: bash: target/TestDefaultContainerExecutor/localDir/default_container_executor.sh: そのようなファイルやディレクトリはありません Stack trace: ExitCodeException exitCode=127: bash: target/TestDefaultContainerExecutor/localDir/default_container_executor.sh: そのようなファイルやディ>レクトリはありません {code} This is because the test code assertion assumes the English locale as below. {code} 250 public Object answer(InvocationOnMock invocationOnMock) 251 throws Throwable { 252 String diagnostics = (String) invocationOnMock.getArguments()[0]; 253 assertTrue("Invalid Diagnostics message: " + diagnostics, 254 diagnostics.contains("No such file or directory")); 255 return null; 256 } {code} This exists on trunk, too. was: In my env where LANG=ja_JP.UTF-8, the test fails with {code} --- Test set: org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor --- Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.286 sec <<< FAILURE! - in org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor testContainerLaunchError(org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor) Time elapsed: 1.149 sec <<< FAILURE! java.lang.AssertionError: Invalid Diagnostics message: Exception from container-launch. Container id: CONTAINER_ID Exit code: 127 Exception message: bash: target/TestDefaultContainerExecutor/localDir/default_container_executor.sh: そのようなファイルやディレクトリはありません Stack trace: ExitCodeException exitCode=127: bash: target/TestDefaultContainerExecutor/localDir/default_container_executor.sh: そのようなファイルやディ>レクトリはありません {code} This is because the test code assertion assumes the English locale as below. {code} 250 public Object answer(InvocationOnMock invocationOnMock) 251 throws Throwable { 252 String diagnostics = (String) invocationOnMock.getArguments()[0]; 253 assertTrue("Invalid Diagnostics message: " + diagnostics, 254 diagnostics.contains("No such file or directory")); 255 return null; 256 } {code} > TestDefaultContainerExecutor#testContainerLaunchError fails on non-englihsh > locale environment > -- > > Key: YARN-4555 > URL: https://issues.apache.org/jira/browse/YARN-4555 > Project: Hadoop YARN > Issue Type: Bug > Components: nodemanager >Affects Versions: 2.7.1 >Reporter: Takashi Ohnishi >Priority: Minor > > In my env where LANG=ja_JP.UTF-8, the test fails with > {code} > --- > Test set: > org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor > --- > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.286 sec <<< > FAILURE! - in > org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor > testContainerLaunchError(org.apache.hadoop.yarn.server.nodemanager.TestDefaultContainerExecutor) > Time elapsed: 1.149 sec <<< FAILURE! > java.lang.AssertionError: Invalid Diagnostics message: Exception from > container-launch. > Container id: CONTAINER_ID > Exit code: 127 > Exception message: bash: > target/TestDefaultContainerExecutor/localDir/default_container_executor.sh: > そのようなファイルやディレクトリはありません > Stack trace: ExitCodeException exitCode=127: bash: > target/TestDefaultContainerExecutor/localDir/default_container_executor.sh: > そのようなファイルやディ>レクトリはありません > {code} > This is because the test code assertion assumes the English locale as below. > {code} > 250 public Object answer(InvocationOnMock invocationOnMock) > 251 throws