File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
vectordb_bench/backend/clients/milvus Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -174,14 +174,13 @@ def wait_index():
174174 try :
175175 self .col .compact ()
176176 self .col .wait_for_compaction_completed ()
177- log .info ("compactation completed. waiting for the rest of index buliding ." )
177+ log .info ("compaction completed. waiting for the rest of index building ." )
178178 except Exception as e :
179179 log .warning (f"{ self .name } compact error: { e } " )
180- if hasattr (e , "code" ):
181- if e .code ().name == "PERMISSION_DENIED" :
182- log .warning ("Skip compact due to permission denied." )
180+ if hasattr (e , "code" ) and e .code ().name == "PERMISSION_DENIED" :
181+ log .warning ("Skip compact due to permission denied." )
183182 else :
184- raise e from e
183+ raise e from None
185184 wait_index ()
186185 except Exception as e :
187186 log .warning (f"{ self .name } optimize error: { e } " )
You can’t perform that action at this time.
0 commit comments