You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Dong Li (JIRA)" <ji...@apache.org> on 2016/01/28 04:17:39 UTC

[jira] [Resolved] (KYLIN-1269) Can not get last error message in email

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

Dong Li resolved KYLIN-1269.
----------------------------
       Resolution: Fixed
    Fix Version/s: v1.3

> Can not get last error message in email
> ---------------------------------------
>
>                 Key: KYLIN-1269
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1269
>             Project: Kylin
>          Issue Type: Bug
>          Components: Job Engine
>    Affects Versions: v1.0, 2.0
>            Reporter: fengYu
>            Assignee: Dong Li
>             Fix For: v2.0, v1.3
>
>         Attachments: 0002-KYLIN-1269-Can-not-get-last-error-message-in-email.patch
>
>
> When I deploy kylin-2.0 in my env and job execute failed, When send email of job status changed, I get the exception : 
> java.lang.IllegalArgumentException: Illegal group reference
>         at java.util.regex.Matcher.appendReplacement(Matcher.java:808)
>         at java.util.regex.Matcher.replaceAll(Matcher.java:906)
>         at java.lang.String.replaceAll(String.java:2162)
>         at org.apache.kylin.engine.mr.CubingJob.formatNotifications(CubingJob.java:140)
>         at org.apache.kylin.job.execution.AbstractExecutable.notifyUserStatusChange(AbstractExecutable.java:213)
>         at org.apache.kylin.job.execution.DefaultChainedExecutable.onExecuteFinished(DefaultChainedExecutable.java:100)
>         at org.apache.kylin.engine.mr.CubingJob.onExecuteFinished(CubingJob.java:166)
>         at org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:113)
>         at org.apache.kylin.job.impl.threadpool.DefaultScheduler$JobRunner.run(DefaultScheduler.java:124)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
> This is because  error message contain special character like '$' or '\', replaceAll will throw exception while encounter this string. http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#replaceAll(java.lang.String, java.lang.String)
> What is more, Kylin can not send error message of last executable job, I modify it too...



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