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

Norval Hope updated DIRSERVER-1255:
-----------------------------------

    Attachment: DIRSERVER-1255-Windoze-test-failures-2.patch

Additional one line patch to get core-integ/ tests passing again on windows. 
The problem is that partitions are never closed, so that the JDBC files 
underneath them aren't closed and the working directory can't be deleted 
leading to the tests failing.

I believe this fix makes logical sense (destroying a partition when it is 
deregistered) but I may have missed some subtlety and maybe the destroy is 
supposed to be triggered elsewhere and isn't happening due to another bug (or 
maybe the integration tests and "real server" cases need tobe different etc).

Thanks!

> unit tests fail on windows (jdbm-store and core-integ)
> ------------------------------------------------------
>
>                 Key: DIRSERVER-1255
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1255
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core, tools
>    Affects Versions: 1.5.4
>         Environment: C:\src\ad-1.5.4>mvn -version
> Maven version: 2.0.8
> Java version: 1.5.0_11
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> C:\src\ad-1.5.4>java -version
> java version "1.5.0_11"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
> Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
> and running mvn from a dos command prompt 
>            Reporter: Norval Hope
>            Priority: Blocker
>             Fix For: 1.5.5
>
>         Attachments: DIRSERVER-1255-Windoze-test-failures-2.patch, 
> jdbm-store-test-failures.patch, test-failures.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> A checkout of 
> http://svn.apache.org/repos/asf/directory/apacheds/trunk-with-dependencies 
> followed by a "mvn install" fails. Initially jdbm-store/ fails with:
> Tests in error:
>  
> testNoEqualityMatching(org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndexTest)
>  
> testSingleValuedAttribute(org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndexTest)
> If JdbmIndexTest is moved out of the way then there are bulk failures in 
> core-integ/ .
> The evidence seems to indicate that all the failures are related to deletion 
> of temp directories failing due windows filesystem semantics.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to