You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2026/03/09 19:09:16 UTC
(lucene) branch main updated: Followup for #15801: Remove the unwrapping to work around for FS providers without MemorySegment support (#15804)
This is an automated email from the ASF dual-hosted git repository.
uschindler pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new 54502231f1b Followup for #15801: Remove the unwrapping to work around for FS providers without MemorySegment support (#15804)
54502231f1b is described below
commit 54502231f1b439e64bfbe62f87abb66261ccd4a7
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Mon Mar 9 20:09:09 2026 +0100
Followup for #15801: Remove the unwrapping to work around for FS providers without MemorySegment support (#15804)
---
lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java | 4 ----
1 file changed, 4 deletions(-)
diff --git a/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java b/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java
index 97b9538b134..8ca59a07ddf 100644
--- a/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java
+++ b/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java
@@ -36,7 +36,6 @@ import java.util.function.Function;
import java.util.logging.Logger;
import org.apache.lucene.index.IndexFileNames;
import org.apache.lucene.util.Constants;
-import org.apache.lucene.util.Unwrappable;
/**
* File-based {@link Directory} implementation that uses mmap for reading, and {@link
@@ -322,9 +321,6 @@ public class MMapDirectory extends FSDirectory {
Path path = directory.resolve(name);
final String resourceDescription = "MemorySegmentIndexInput(path=\"" + path.toString() + "\")";
- // Work around for JDK-8259028: we need to unwrap our test-only file system layers
- path = Unwrappable.unwrapAll(path);
-
final boolean confined = context.hints().contains(ReadOnceHint.INSTANCE);
Function<IOContext, ReadAdvice> toReadAdvice =
c -> readAdvice.apply(name, c).orElse(Constants.DEFAULT_READADVICE);