You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Chao Long (JIRA)" <ji...@apache.org> on 2018/12/20 12:49:00 UTC

[jira] [Updated] (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:all-tabpanel ]

Chao Long updated KYLIN-3734:
-----------------------------
    Description: 
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.

  was:
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 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.


> 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
>
> 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)