Chukwa
  1. Chukwa
  2. CHUKWA-331

Regular expression error in MetricsDataLoader

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.2.0
    • Fix Version/s: 0.2.0
    • Component/s: None
    • Labels:
      None

      Description

      It cannot parse record type and time correctly.

        Activity

        Hide
        Cheng added a comment -

        error log in the postProcess.log:

        2009-06-24 03:02:00,751 INFO pool-1-thread-2 MetricDataLoader - StreamName: SystemMetrics-30_0_20090623.D.evt
        2009-06-24 03:02:00,751 INFO pool-1-thread-1 MetricDataLoader - StreamName: SystemMetrics-30_1_20090623.D.evt
        2009-06-24 03:02:00,877 ERROR pool-1-thread-2 MetricDataLoader - java.lang.IndexOutOfBoundsException: No group 2
        at java.util.regex.Matcher.group(Matcher.java:470)
        at org.apache.hadoop.chukwa.dataloader.MetricDataLoader.run(MetricDataLoader.java:228)
        at org.apache.hadoop.chukwa.dataloader.MetricDataLoader.call(MetricDataLoader.java:571)
        at org.apache.hadoop.chukwa.dataloader.MetricDataLoader.call(MetricDataLoader.java:50)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)

        Show
        Cheng added a comment - error log in the postProcess.log: 2009-06-24 03:02:00,751 INFO pool-1-thread-2 MetricDataLoader - StreamName: SystemMetrics-30_0_20090623.D.evt 2009-06-24 03:02:00,751 INFO pool-1-thread-1 MetricDataLoader - StreamName: SystemMetrics-30_1_20090623.D.evt 2009-06-24 03:02:00,877 ERROR pool-1-thread-2 MetricDataLoader - java.lang.IndexOutOfBoundsException: No group 2 at java.util.regex.Matcher.group(Matcher.java:470) at org.apache.hadoop.chukwa.dataloader.MetricDataLoader.run(MetricDataLoader.java:228) at org.apache.hadoop.chukwa.dataloader.MetricDataLoader.call(MetricDataLoader.java:571) at org.apache.hadoop.chukwa.dataloader.MetricDataLoader.call(MetricDataLoader.java:50) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619)
        Hide
        Cheng added a comment -

        patch provided.

        Show
        Cheng added a comment - patch provided.
        Hide
        Eric Yang added a comment -

        +1 looks good.

        Show
        Eric Yang added a comment - +1 looks good.
        Hide
        Eric Yang added a comment -

        I just committed this, thanks Cheng.

        Show
        Eric Yang added a comment - I just committed this, thanks Cheng.

          People

          • Assignee:
            Cheng
            Reporter:
            Cheng
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development