wangxiaojing created KYLIN-4017:
-----------------------------------

             Summary: Zookeeper trying to get lock exception, instance must be 
started before calling this method
                 Key: KYLIN-4017
                 URL: https://issues.apache.org/jira/browse/KYLIN-4017
             Project: Kylin
          Issue Type: Bug
          Components: Job Engine, Tools, Build and Test
    Affects Versions: Future, v3.0.0, v3.0.0-alpha
            Reporter: wangxiaojing
             Fix For: Future, v3.0.0-alpha
         Attachments: zkinstancestart.png

Kylin has ZK acquisition lock exception when it is building job. It can solve 
the problem after restart otherwise it can not work This problem will continue 
to occur one day after restart. Log looks like below:

2019-05-15 11:09:43,209 DEBUG [Scheduler 719764581 Job 
878974c4-4c65-88a4-a912-b238fcc33bdc-132] zookeeper.ZookeeperDistributedLock:92 
: [email protected] trying to lock 
/job_engine/lock/878974c4-4c65-88a4-a912-b238fcc33bdc
2019-05-15 11:09:43,212 ERROR [pool-12-thread-10] 
threadpool.DistributedScheduler:115 : unknown error execute 
job:878974c4-4c65-88a4-a912-b238fcc33bdc in server: 
[email protected]
java.lang.IllegalStateException: Error while 
[email protected] trying to lock 
/job_engine/lock/878974c4-4c65-88a4-a912-b238fcc33bdc
 at 
org.apache.kylin.job.lock.zookeeper.ZookeeperDistributedLock.lock(ZookeeperDistributedLock.java:99)
 at 
org.apache.kylin.job.lock.zookeeper.ZookeeperJobLock.lock(ZookeeperJobLock.java:41)
 at 
org.apache.kylin.job.impl.threadpool.DistributedScheduler$JobRunner.run(DistributedScheduler.java:105)
 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: instance must be started before 
calling this method
 at 
org.apache.curator.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:176)
 at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.create(CuratorFrameworkImpl.java:351)
 at 
org.apache.kylin.job.lock.zookeeper.ZookeeperDistributedLock.lock(ZookeeperDistributedLock.java:95)
 ... 5 more



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to