fix(rag): exclude IndexNotFoundException from corrupt status

This commit is contained in:
2026-11-17 17:08:40 +09:00
parent 1ece130f10
commit 87b958b722
+3 -1
View File
@@ -114,9 +114,11 @@ object RagService {
while (current != null) {
val name = current.javaClass.name
val msg = current.message ?: ""
// IndexNotFoundException은 인덱스가 아직 비어있는 정상 상태이므로 손상으로 취급하지 않음
if (name.contains("IndexNotFoundException")) return false
if (name.contains("CorruptIndexException") ||
name.contains("NoSuchFileException") ||
name.contains("IndexNotFoundException") ||
msg.contains("CorruptIndexException") ||
msg.contains("NoSuchFileException")
) {