This is an automated email from the ASF dual-hosted git repository.
reschke pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
The following commit(s) were added to refs/heads/trunk by this push:
new 134b5af793 OAK-10460 - PIPELINED strategy: support eager merging of
intermediate sorted files - fix test issue on Windows platform
134b5af793 is described below
commit 134b5af7932a941c4d17b1914c4c2014b5a9c8a0
Author: Julian Reschke <[email protected]>
AuthorDate: Fri Oct 27 12:00:06 2023 +0100
OAK-10460 - PIPELINED strategy: support eager merging of intermediate
sorted files - fix test issue on Windows platform
---
.../document/flatfile/pipelined/PipelinedMergeSortTaskTest.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git
a/oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/pipelined/PipelinedMergeSortTaskTest.java
b/oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/pipelined/PipelinedMergeSortTaskTest.java
index 226ae89a98..1eda6aff31 100644
---
a/oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/pipelined/PipelinedMergeSortTaskTest.java
+++
b/oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/pipelined/PipelinedMergeSortTaskTest.java
@@ -22,6 +22,7 @@ import org.apache.jackrabbit.oak.commons.Compression;
import org.junit.Test;
import java.io.BufferedWriter;
+import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Path;
@@ -76,10 +77,12 @@ public class PipelinedMergeSortTaskTest extends
PipelinedMergeSortTaskTestBase {
runTest(algorithm, singleFileToMerge);
}
- private Path getTestFile(String name) {
+ private Path getTestFile(String name) throws URISyntaxException {
URL url = classLoader.getResource(name);
- if (url == null) throw new IllegalArgumentException("Test file not
found: " + name);
- return Paths.get(url.getPath());
+ if (url == null) {
+ throw new IllegalArgumentException("Test file not found: " + name);
+ }
+ return Paths.get(url.toURI());
}
private PipelinedMergeSortTask.Result runTest(Compression algorithm,
Path... files) throws Exception {