ATOMIC_MOVE fails under high frequency conditions on Windows
Robert Muir
rcmuir at gmail.com
Thu Mar 2 13:07:24 UTC 2023
On Thu, Mar 2, 2023 at 5:52 AM Michael Osipov <michaelo at apache.org> wrote:
>
> Can you guide me to the code spots in Lucene for the optimal behavior?
>
You just want to look into FileChannel.force().
Here is the helper method we use:
https://github.com/apache/lucene/blob/70c152bf321f20c589f1e002fa01ccbfc74aa398/lucene/core/src/java/org/apache/lucene/util/IOUtils.java#L408-L444
More information about the nio-dev
mailing list