Apache Lucene open-source search software
Fix urls describing why NIOFS is not recommended for Windows (#14081)
YeonghyeonKo2756cd982c52
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex b7f38f5a688..e6174479ee0 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -68,7 +68,7 @@ Bug FixesOther----------------------(No changes)+* GITHUB#14081: Fix urls describing why NIOFS is not recommended for Windows (Marcel Yeonghyeon Ko)======================= Lucene 10.1.0 =======================diff --git a/lucene/core/src/java/org/apache/lucene/store/FSDirectory.java b/lucene/core/src/java/org/apache/lucene/store/FSDirectory.javaindex 413e22c45ae..0a49cba05e4 100644--- a/lucene/core/src/java/org/apache/lucene/store/FSDirectory.java+++ b/lucene/core/src/java/org/apache/lucene/store/FSDirectory.java@@ -60,7 +60,7 @@ import org.apache.lucene.util.IOUtils;* post</a>.* <li>{@link NIOFSDirectory} uses java.nio's FileChannel's positional io when reading to avoid* synchronization when reading from the same file. Unfortunately, due to a Windows-only <a- * href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6265734">Sun JRE bug</a> this is a+ * href="https://bugs.java.com/bugdatabase/view_bug?bug_id=6265734">Sun JRE bug</a> this is a* poor choice for Windows, but on all other platforms this is the preferred choice.* Applications using {@link Thread#interrupt()} or {@link Future#cancel(boolean)} should use* {@code RAFDirectory} instead, which is provided in the {@code misc} module. See {@linkdiff --git a/lucene/core/src/java/org/apache/lucene/store/NIOFSDirectory.java b/lucene/core/src/java/org/apache/lucene/store/NIOFSDirectory.javaindex 246f48082cf..c9c92db91b4 100644--- a/lucene/core/src/java/org/apache/lucene/store/NIOFSDirectory.java+++ b/lucene/core/src/java/org/apache/lucene/store/NIOFSDirectory.java@@ -36,7 +36,7 @@ import org.apache.lucene.util.IOUtils;* <p><b>NOTE</b>: NIOFSDirectory is not recommended on Windows because of a bug in how* FileChannel.read is implemented in Sun's JRE. Inside of the implementation the position is* apparently synchronized. See <a- * href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6265734">here</a> for details.+ * href="https://bugs.java.com/bugdatabase/view_bug?bug_id=6265734">here</a> for details.** <p><b>NOTE:</b> Accessing this class either directly or indirectly from a thread while it's* interrupted can close the underlying file descriptor immediately if at the same time the thread