From 4899e7df670533aae334272b0d5bc6d390a1c552 Mon Sep 17 00:00:00 2001 From: YeonghyeonKo <46114393+YeonghyeonKO@users.noreply.github.com> Date: Fri, 10 Jan 2025 01:49:59 +0900 Subject: [PATCH] Fix urls describing why NIOFS is not recommended for Windows (#14081) This patch fixes incorrect URL links in NIOFSDirectory and FSDirectory. --- lucene/CHANGES.txt | 2 +- lucene/core/src/java/org/apache/lucene/store/FSDirectory.java | 2 +- .../core/src/java/org/apache/lucene/store/NIOFSDirectory.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt index e0938ff370bf..d568a00e8e95 100644 --- a/lucene/CHANGES.txt +++ b/lucene/CHANGES.txt @@ -36,7 +36,7 @@ Bug Fixes Other --------------------- -(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.java index 413e22c45ae8..0a49cba05e49 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 @@ * post. *
NOTE: 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 here for details. + * href="https://bugs.java.com/bugdatabase/view_bug?bug_id=6265734">here for details. * *
NOTE: 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