SevenCss commented on issue #7820:
URL: https://github.com/apache/lucene/issues/7820#issuecomment-1683471448
Hi , @asfimport
Recently, i encountered one similar issue that there are two segments files
in my index ( I'm using Lucene 8.10 version ) :
- segments_a7
- segments_a8
while segments_a7 refer to the already deleted file `_be.si`. It seems that
"segments_a7" was left behind and not deleted successfully. (We use the
KeepOnlyLastCommitDeletionPolicy ).
When i tried to exam the index with CheckIndex, it could not detect the
error and could not fix the problem, either.
So, i would like to ask for some help here. Here are some questions
- Are you going to fix this open issue recently?
- Besides, could you please provide some idea why segments_a7 is left
behind if you happen to have some experience?
- Is there any solution we could do, except manually delete the corrupted
segments file?
Below is the callstack:
```
at
org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:293)
at
org.apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java:165)
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1089)
...
Caused by: java.nio.file.NoSuchFileException:
Z:\BIN\x64\SearchData2\index\9d8a49d54e04e0be62c877acc18a5a0a\DossierContent\_be.si
at
java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
at
java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at
java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at
java.base/sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:120)
at java.base/java.nio.channels.FileChannel.open(FileChannel.java:292)
at java.base/java.nio.channels.FileChannel.open(FileChannel.java:345)
at
org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:238)
at
org.apache.lucene.store.Directory.openChecksumInput(Directory.java:157)
at
org.apache.lucene.codecs.lucene86.Lucene86SegmentInfoFormat.read(Lucene86SegmentInfoFormat.java:91)
at
org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:357)
at
org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:291)
... 4 more
Suppressed: org.apache.lucene.index.CorruptIndexException: checksum
passed (55e61d41). possibly transient resource issue, or a Lucene or JVM bug
(resource=BufferedChecksumIndexInput(MMapIndexInput(path="Z:\BIN\x64\SearchData2\index\9d8a49d54e04e0be62c877acc18a5a0a\DossierContent\segments_a7")))
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]