Uploaded image for project: 'DistributedLog'
  1. DistributedLog
  2. DL-174

Test fail on Windows - Path must start with /

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.4.0
    • 0.4.0
    • None
    • None

    Description

      When running mvn clean test on Windows, some tests fail with the error "Path must start with /".

      Example:
      testCheckAndRepairDLNamespace(com.twitter.distributedlog.admin.TestDLCK) Time elapsed: 1.016 sec <<< ERROR!
      java.lang.IllegalArgumentException: Path must start with / character
      at org.apache.zookeeper.common.PathUtils.validatePath(PathUtils.java:51)
      at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1794)
      at org.apache.bookkeeper.zookeeper.ZooKeeperClient.access$3101(ZooKeeperClient.java:71)
      at org.apache.bookkeeper.zookeeper.ZooKeeperClient$21.zkRun(ZooKeeperClient.java:1150)
      at org.apache.bookkeeper.zookeeper.ZooKeeperClient$ZkRetryRunnable.run(ZooKeeperClient.java:467)
      at org.apache.bookkeeper.zookeeper.ZooKeeperClient.getData(ZooKeeperClient.java:1162)
      at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1820)
      at org.apache.bookkeeper.zookeeper.ZooKeeperClient.access$3201(ZooKeeperClient.java:71)
      at org.apache.bookkeeper.zookeeper.ZooKeeperClient$22.zkRun(ZooKeeperClient.java:1187)
      at org.apache.bookkeeper.zookeeper.ZooKeeperClient$ZkRetryRunnable.run(ZooKeeperClient.java:467)
      at org.apache.bookkeeper.zookeeper.ZooKeeperClient.getData(ZooKeeperClient.java:1199)
      at com.twitter.distributedlog.util.Utils.zkGetData(Utils.java:334)
      at com.twitter.distributedlog.impl.metadata.ZKLogStreamMetadataStore.checkLogMetadataPaths(ZKLogStreamMetadataStore.java:348)
      at com.twitter.distributedlog.impl.metadata.ZKLogStreamMetadataStore.getLog(ZKLogStreamMetadataStore.java:557)
      at com.twitter.distributedlog.impl.metadata.ZKLogStreamMetadataStore.getLog(ZKLogStreamMetadataStore.java:591)
      at com.twitter.distributedlog.BKDistributedLogManager.asyncCreateWriteHandler(BKDistributedLogManager.java:361)
      at com.twitter.distributedlog.BKDistributedLogManager.createWriteHandler(BKDistributedLogManager.java:356)
      at com.twitter.distributedlog.DLMTestUtil.injectLogSegmentWithLastDLSN(DLMTestUtil.java:392)
      at com.twitter.distributedlog.admin.TestDLCK.testCheckAndRepairDLNamespace(TestDLCK.java:122)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      at org.junit.internal.runners.statements.FailOnTimeout$1.run(FailOnTimeout.java:28)

      Attachments

        Issue Links

          Activity

            People

              fonan Tracy Martin
              fonan Tracy Martin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: