You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "fengYu (JIRA)" <ji...@apache.org> on 2015/12/30 09:25:49 UTC

[jira] [Comment Edited] (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:comment-tabpanel&focusedCommentId=15074777#comment-15074777 ] 

fengYu edited comment on KYLIN-1269 at 12/30/15 8:25 AM:
---------------------------------------------------------

I submit my patch to 2.0-rc send a request in github...


was (Author: feng_xiao_yu):
I submit my patch to 2.0-rc

> 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: ZhouQianhao
>             Fix For: v2.0
>
>
> 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)