You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Shaofeng SHI (JIRA)" <ji...@apache.org> on 2015/12/24 04:00:54 UTC
[jira] [Commented] (KYLIN-1250) Got NPE when discarding a job
[ https://issues.apache.org/jira/browse/KYLIN-1250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15070528#comment-15070528 ]
Shaofeng SHI commented on KYLIN-1250:
-------------------------------------
When user got an error in the first cube build job, he modified the cube definition, at that moment Kylin dropped the building segment from metadata, then the error job became an orphan (its linked segment doesn't exist); Then when user wants to discard that job, the NPE was thrown.
The fix includes: 1) when drop segment, also discard the related job; 2) When discard a job, if the segment doesn't exist, still allow it to proceed.
> Got NPE when discarding a job
> -----------------------------
>
> Key: KYLIN-1250
> URL: https://issues.apache.org/jira/browse/KYLIN-1250
> Project: Kylin
> Issue Type: Bug
> Components: General
> Affects Versions: v1.2
> Reporter: Shaofeng SHI
> Assignee: Shaofeng SHI
> Fix For: v1.3
>
>
> User reported that he couldn't rebuild a cube, Kylin reports "The cube <cube_name> has running job (<job_id>) please discard it and try again."
> Then he tried to discard the job, but got an NullPointerException;
> {code}
> Caused by: java.lang.NullPointerException
> at org.apache.kylin.rest.service.JobService.cancelJob(JobService.java:321)
> at org.apache.kylin.rest.service.JobService$$FastClassByCGLIB$$83a44b2a.invoke(<generated>)
> at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
> at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:64)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInv
> {code}
> User said "We haven’t done the purge action. It’s possible that the bug was triggered when we have made the changes to filtering while the cube was still in the build process?"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)