You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2016/11/04 12:58:58 UTC
[jira] [Commented] (OAK-5009) ExternalToExternalMigrationTest
failures on Windows
[ https://issues.apache.org/jira/browse/OAK-5009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15636264#comment-15636264 ]
Thomas Mueller commented on OAK-5009:
-------------------------------------
[~tomek.rekawek] as you originally wrote that code (I just committed it, see OAK-3148), could you review the patch please?
{noformat}
--- src/test/java/org/apache/jackrabbit/oak/plugins/blob/migration/AbstractMigratorTest.java (revision 1768019)
+++ src/test/java/org/apache/jackrabbit/oak/plugins/blob/migration/AbstractMigratorTest.java (working copy)
@@ -24,6 +24,8 @@
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
+import java.nio.file.FileSystems;
+import java.nio.file.Path;
import java.util.Random;
import org.apache.commons.io.FileUtils;
@@ -40,6 +42,7 @@
import org.apache.jackrabbit.oak.spi.state.NodeBuilder;
import org.apache.jackrabbit.oak.spi.state.NodeState;
import org.apache.jackrabbit.oak.spi.state.NodeStore;
+import org.h2.store.fs.FilePath;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
@@ -63,7 +66,8 @@
@Before
public void setup() throws CommitFailedException, IllegalArgumentException, IOException {
- repository = Files.createTempDir();
+ Path target = FileSystems.getDefault().getPath("target");
+ repository = java.nio.file.Files.createTempDirectory(target, "migrate-").toFile();
BlobStore oldBlobStore = createOldBlobStore(repository);
NodeStore originalNodeStore = createNodeStore(oldBlobStore, repository);
createContent(originalNodeStore);
{noformat}
> ExternalToExternalMigrationTest failures on Windows
> ---------------------------------------------------
>
> Key: OAK-5009
> URL: https://issues.apache.org/jira/browse/OAK-5009
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core, segment-tar
> Reporter: Julian Reschke
> Labels: test-failure
> Fix For: 1.5.13
>
>
> {noformat}
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 13.484 sec <<< FAILURE! - in org.apache.jackrabbit.oak.segment.migration.ExternalToExternalMigrationTest
> blobsCanBeReadAfterSwitchingBlobStore(org.apache.jackrabbit.oak.segment.migration.ExternalToExternalMigrationTest) Time elapsed: 0.463 sec <<< ERROR!
> java.io.IOException: Unable to delete file: C:\tmp\1477483643533-0\segmentstore\data00001a.tar
> blobsExistsOnTheNewBlobStore(org.apache.jackrabbit.oak.segment.migration.ExternalToExternalMigrationTest) Time elapsed: 13.021 sec <<< ERROR!
> java.io.IOException: Unable to delete file: C:\tmp\1477483643996-0\segmentstore\data00000a.tar
> Running org.apache.jackrabbit.oak.segment.migration.SegmentToExternalMigrationTest
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 12.719 sec <<< FAILURE! - in org.apache.jackrabbit.oak.segment.migration.SegmentToExternalMigrationTest
> blobsCanBeReadAfterSwitchingBlobStore(org.apache.jackrabbit.oak.segment.migration.SegmentToExternalMigrationTest) Time elapsed: 0.157 sec <<< ERROR!
> java.io.IOException: Unable to delete file: C:\tmp\1477483657018-0\segmentstore\data00001a.tar
> blobsExistsOnTheNewBlobStore(org.apache.jackrabbit.oak.segment.migration.SegmentToExternalMigrationTest) Time elapsed: 12.561 sec <<< ERROR!
> java.io.IOException: Unable to delete file: C:\tmp\1477483657193-0\segmentstore\data00000a.tar
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)