You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/12/22 14:05:00 UTC

[jira] [Commented] (KYLIN-3734) UT Failed:Invalid path string "/kylin/../examples/test_metadata/job_engine/global_job_engine_lock"

    [ https://issues.apache.org/jira/browse/KYLIN-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16727476#comment-16727476 ] 

ASF subversion and git services commented on KYLIN-3734:
--------------------------------------------------------

Commit b31385f8e53d49ad68b5030769c1611a8a64ae9c in kylin's branch refs/heads/master from chao long
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=b31385f ]

KYLIN-3734 Fix UT error: invalid path of global job lock


> 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
>            Priority: Major
>             Fix For: v2.6.0
>
>
> After merge pr of issue KYLIN-1819, I get a UT error about ZookeeperDistributedLock.
> Error message:
>  Caused by: java.lang.IllegalStateException: Error while 19393@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)