Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-3734

UT Failed:Invalid path string "/kylin/../examples/test_metadata/job_engine/global_job_engine_lock"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v2.6.0
    • Component/s: Tools, Build and Test
    • Labels:
      None

      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.

        Attachments

          Activity

            People

            • Assignee:
              Wayne0101 Chao Long
              Reporter:
              Wayne0101 Chao Long
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: