You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Etienne Chauchot (Jira)" <ji...@apache.org> on 2020/04/23 09:11:00 UTC

[jira] [Comment Edited] (FLINK-17213) Surefire configuration should override locale

    [ https://issues.apache.org/jira/browse/FLINK-17213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17087757#comment-17087757 ] 

Etienne Chauchot edited comment on FLINK-17213 at 4/23/20, 9:10 AM:
--------------------------------------------------------------------

Just a quick update. I tried several things: putting the locale in surefire config in either command line or system properties and also tried to set it in the unit test and no solution worked. Then I realized that the test I was running calls the low level JVM internal 
{code:java}
native boolean createFileExclusively(String path){code}
which makes no use of the java locale. So, to make flink tests nonsensitive to the language, I need to set a system variable $LANG to en_US.UTF-8. I'm searching for a good place to set and unset such a variable during the build and I submit the PR.


was (Author: echauchot):
Just a quick update. I tried several things: putting the locale in surefire config in either command line or system properties and also tried to set it in the unit test and no solution worked. Then I realized that the test I was running calls the low level JVM internal 
{code:java}
native boolean createFileExclusively(String path){code}
which makes no use of the java locale. So, to make flink tests nonsensitive to the language, I need to set a system variable $LC_ALL to en_US.UTF-8. I'm searching for a good place to set and unset such a variable during the build and I submit the PR.

> Surefire configuration should override locale 
> ----------------------------------------------
>
>                 Key: FLINK-17213
>                 URL: https://issues.apache.org/jira/browse/FLINK-17213
>             Project: Flink
>          Issue Type: Improvement
>          Components: Tests
>            Reporter: Etienne Chauchot
>            Assignee: Etienne Chauchot
>            Priority: Major
>
> Some tests (this one for ex BlobServerGetTest.testGetFailsIncomingForJobHa) expect exceptions and expect a certain message which is in English. For users whose system locale is not English, the tests fail. So surefire should configure the local to US so that these tests pass for every user no matter his system locale.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)