You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@distributedlog.apache.org by "Sijie Guo (JIRA)" <ji...@apache.org> on 2017/04/13 04:39:41 UTC

[jira] [Resolved] (DL-174) Test fail on Windows - Path must start with /

     [ https://issues.apache.org/jira/browse/DL-174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sijie Guo resolved DL-174.
--------------------------
       Resolution: Fixed
    Fix Version/s: 0.4.0

Issue resolved by merging pull request 104
      [https://github.com/apache/incubator-distributedlog/pull/104]

      {noformat}
      commit 945c14a99bdf8267f325e671600907ec6cff53d6
Author:     adamtracymartin <at...@yahoo.com>
AuthorDate: Wed Apr 12 21:38:32 2017 -0700
Commit:     Sijie Guo <si...@apache.org>
CommitDate: Wed Apr 12 21:38:32 2017 -0700

    DL-174: added getParent method to Utils to replace usage of File.getParent which changes / to \ on Windows
    
    …ich changes / to \ in Windows.
    
    Author: adamtracymartin <at...@yahoo.com>
    
    Reviewers: Sijie Guo <si...@apache.org>
    
    Closes #104 from adamtracymartin/DL-174

      {noformat}
      

> Test fail on Windows - Path must start with /
> ---------------------------------------------
>
>                 Key: DL-174
>                 URL: https://issues.apache.org/jira/browse/DL-174
>             Project: DistributedLog
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Tracy Martin
>            Assignee: Tracy Martin
>            Priority: Minor
>             Fix For: 0.4.0
>
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)