Chao Long created KYLIN-3734:
--------------------------------

             Summary: UT Failed:Invalid path string 
"/kylin/../examples/test_metadata/job_engine/global_job_engine_lock"
                 Key: KYLIN-3734
                 URL: https://issues.apache.org/jira/browse/KYLIN-3734
             Project: Kylin
          Issue Type: Bug
          Components: Tools, Build and Test
            Reporter: Chao Long
            Assignee: Chao Long


After merge pr of issue 
[KYLIN-1819]|https://issues.apache.org/jira/browse/KYLIN-1819], I get a UT 
error about ZookeeperDistributedLock.

Error message:
Caused by: java.lang.IllegalStateException: Error while 
19...@sandbox.hortonworks.com trying to lock 
/kylin/../examples/test_metadata/job_engine/global_job_engine_lock
        at 
org.apache.kylin.storage.hbase.util.ZookeeperDistributedLock.lock(ZookeeperDistributedLock.java:151)
        at 
org.apache.kylin.storage.hbase.util.ZookeeperDistributedLock.lock(ZookeeperDistributedLock.java:168)
        at 
org.apache.kylin.storage.hbase.util.ZookeeperDistributedLock.lockJobEngine(ZookeeperDistributedLock.java:308)
        at 
org.apache.kylin.storage.hbase.util.ZookeeperJobLock.lockJobEngine(ZookeeperJobLock.java:81)
        at 
org.apache.kylin.job.impl.threadpool.DefaultScheduler.init(DefaultScheduler.java:152)
        at 
org.apache.kylin.rest.service.JobService.afterPropertiesSet(JobService.java:126)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
        ... 70 more
Caused by: java.lang.IllegalArgumentException: Invalid path string 
"/kylin/../examples/test_metadata/job_engine/global_job_engine_lock" caused by 
relative paths not allowed @8
        at org.apache.curator.utils.PathUtils.validatePath(PathUtils.java:102)
        at org.apache.curator.utils.PathUtils.validatePath(PathUtils.java:37)
        at org.apache.curator.utils.ZKPaths.fixForNamespace(ZKPaths.java:105)
        at 
org.apache.curator.framework.imps.NamespaceImpl.fixForNamespace(NamespaceImpl.java:104)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.fixForNamespace(CuratorFrameworkImpl.java:599)
        at 
org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:465)
        at 
org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:44)
        at 
org.apache.kylin.storage.hbase.util.ZookeeperDistributedLock.lock(ZookeeperDistributedLock.java:147)
        ... 77 more
It throw this exception before, but because the scheduler is running in a new 
thread, the exception thrown by the thread will be ignored.



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

Reply via email to