LUCENE-9467: Fix NRTCachingDirectory to use Directory#fileLength

to check if a file already exists instead of opening an IndexInput
on the file which might throw a AccessDeniedException in some Directory implementations.
This commit is contained in:
Simon Willnauer 2020-08-17 18:25:34 +02:00
parent d9fb14dec1
commit 70c72ff4b9
1 changed files with 3 additions and 0 deletions

View File

@ -201,6 +201,9 @@ Bug Fixes
* LUCENE-9427: Fix a regression where the unified highlighter didn't produce * LUCENE-9427: Fix a regression where the unified highlighter didn't produce
highlights on fuzzy queries that correspond to exact matches. (Julie Tibshirani) highlights on fuzzy queries that correspond to exact matches. (Julie Tibshirani)
* LUCENE-9467: Fix NRTCachingDirectory to use Directory#fileLength to check if a file
already exists instead of opening an IndexInput on the file which might throw a AccessDeniedException
in some Directory implementations. (Simon Willnauer)
Documentation Documentation
--------------------- ---------------------