Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-3039

TestSyslogUtils fails when system locale is not English

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 1.7.0
    • 1.8.1
    • Sinks+Sources
    • None

    Description

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

      Attachments

        1. FLUME-3039.patch
          2 kB
          pingwang

        Activity

          People

            Unassigned Unassigned
            pingwang pingwang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: