Commit 549d50f
authored
fix: release Lucene lock before retry on corrupt index (#8)
When initLucene() fails during the CheckIndex step, the IndexWriter
already holds the write.lock. The catch block deleted index files but
never closed the writer, so the retry attempt hit
LockObtainFailedException from the same JVM.1 parent 3bda0b3 commit 549d50f
1 file changed
Lines changed: 11 additions & 0 deletions
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
108 | 119 | | |
109 | 120 | | |
110 | 121 | | |
| |||
0 commit comments