Istvan Toth created HADOOP-19508:
------------------------------------

             Summary: Set charsetEncoder in TestHadoopArchiveLogs
                 Key: HADOOP-19508
                 URL: https://issues.apache.org/jira/browse/HADOOP-19508
             Project: Hadoop Common
          Issue Type: Bug
            Reporter: Istvan Toth
            Assignee: Istvan Toth


The test fails in CI on Centos 7, likely because it has different default 
charsets.
{noformat}
[ERROR] org.apache.hadoop.tools.TestHadoopArchiveLogs.testGenerateScript  Time 
elapsed: 0.036 s  <<< ERROR!
java.lang.IllegalStateException: Mismatched Charset(UTF-8) and 
CharsetEncoder(US-ASCII)
        at 
org.apache.commons.io.output.FileWriterWithEncoding$Builder.get(FileWriterWithEncoding.java:113)
        at 
org.apache.hadoop.tools.HadoopArchiveLogs.generateScript(HadoopArchiveLogs.java:512)
        at 
org.apache.hadoop.tools.TestHadoopArchiveLogs._testGenerateScript(TestHadoopArchiveLogs.java:280)
        at 
org.apache.hadoop.tools.TestHadoopArchiveLogs.testGenerateScript(TestHadoopArchiveLogs.java:248)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at 
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
        at 
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.lang.Thread.run(Thread.java:750){noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-dev-h...@hadoop.apache.org

Reply via email to