benwtrent opened a new issue, #13275: URL: https://github.com/apache/lucene/issues/13275
### Description There is a nasty bug in JDK 22: Elasticsearch issue: https://github.com/elastic/elasticsearch/issues/106987 JDK issue: https://bugs.openjdk.org/browse/JDK-8329528 While this JDK bug does seem fixed in JDK 21.0.3: https://github.com/elastic/elasticsearch/issues/106987#issuecomment-2039591571 We noticed in places where this bug reared its ugly head, segment state ended up in a strange place. ``` Unexpected file read error while reading index. (resource=BufferedChecksumIndexInput(NIOFSIndexInput(path="<DATA_PATH>/segments_qt"))) Caused by: java.nio.file.NoSuchFileException: <DATAPATH>/_9xo.si ``` The resulting segment state did create the `segments_N` file, and had a CFS file. But, was missing `.si` and `.cfe`. This smells like we have an over-eager cleanup code somewhere. As the rename from `pending_*` seems to have occurred, and the CFS file created, but we deleted the `.si` and `.cfe` files. ### Version and environment details _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org