File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3961,10 +3961,11 @@ async def adelete_by_doc_id(
39613961 ) from e
39623962
39633963 # 11. Delete original document and status.
3964- # doc_status is deleted first so that if full_docs.delete fails, a retry
3965- # finds no doc_status record and treats the document as already gone.
3966- # When skip_rebuild is set the caller handles a deferred rebuild that may
3967- # fail -- keep doc_status alive so the user can re-trigger deletion later.
3964+ # Normal mode: doc_status is deleted first so that if full_docs.delete
3965+ # fails, a retry finds no doc_status record and treats the doc as gone.
3966+ # Batch mode (skip_rebuild): doc_status stays alive because the caller
3967+ # still needs to do a deferred rebuild that might fail. If it does fail,
3968+ # having doc_status around means the user can just re-trigger deletion.
39683969 try :
39693970 deletion_stage = "delete_doc_entries"
39703971 in_final_delete_stage = True
You can’t perform that action at this time.
0 commit comments