RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
fix(ob_conn): ignore duplicate errors when executing 'create_idx' (#12661)
He Wangbd9163904a88
diff --git a/rag/utils/ob_conn.py b/rag/utils/ob_conn.pyindex 6f6457cda9..78a77e9c99 100644--- a/rag/utils/ob_conn.py+++ b/rag/utils/ob_conn.py@@ -329,6 +329,14 @@ def _try_with_lock(lock_name: str, process_func, check_func, timeout: int = Nonetry:process_func()return+ except Exception as e:+ if "Duplicate" in str(e):+ # In some cases, the schema may change after the lock is acquired, so if the error message+ # indicates that the column or index is duplicated, it should be assumed that 'process_func'+ # has been executed correctly.+ logger.warning(f"Skip processing {lock_name} due to duplication: {str(e)}")+ return+ raisefinally:lock.release()