fix(rag): exclude IndexNotFoundException from corrupt status
This commit is contained in:
@@ -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")
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user