You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "pingwang (JIRA)" <ji...@apache.org> on 2017/01/04 09:11:58 UTC

[jira] [Updated] (FLUME-3039) TestSyslogUtils fails when system locale is not English

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

pingwang updated FLUME-3039:
----------------------------
    Attachment: FLUME-3039.patch

Attached my patch for this problem.

> TestSyslogUtils fails when system locale is not English
> -------------------------------------------------------
>
>                 Key: FLUME-3039
>                 URL: https://issues.apache.org/jira/browse/FLUME-3039
>             Project: Flume
>          Issue Type: Bug
>          Components: Sinks+Sources
>    Affects Versions: v1.7.0
>            Reporter: pingwang
>            Priority: Minor
>         Attachments: FLUME-3039.patch
>
>
> Ran Flume 1.7.0 UT hit the error below:
> ...
> TestHeader9(org.apache.flume.source.TestSyslogUtils)  Time elapsed: 10 sec  <<< ERROR!
> java.text.ParseException: Unparseable date: "2016十二月  28 03:12:25"
>     at java.text.DateFormat.parse(DateFormat.java:366)
>     at org.apache.flume.source.TestSyslogUtils.checkHeader(TestSyslogUtils.java:251)
>     at org.apache.flume.source.TestSyslogUtils.checkHeader(TestSyslogUtils.java:266)
>     at org.apache.flume.source.TestSyslogUtils.TestHeader9(TestSyslogUtils.java:143)
>     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:497)
>     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
>     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15
> ...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)