Filesystem doesn't retry Drive's 409 Conflict on delete
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
從檔案系統的 rm 實作開始,並將其刪除處理方式與 #461 中為測試新增的 pydrive_retry 輔助函式進行比較。僅在刪除時,為原因是 conflict 的 Drive 409 回應新增重試處理,同時保留現有將 404 視為成功的處理方式。檢查與刪除相關的測試,並確認首次嘗試後再次刪除能夠成功。
由索引模型根據 Issue 內容生成。
描述
Right after a file changes, Drive sometimes answers a DELETE with 409 Conflict (reason conflict). Live CI hit this three times during test cleanup on the 2.0 fix PRs: twice right after a content update and once right after a conversion to a Google Doc. #461 makes the tests' retry helper (pydrive_retry) retry it. The filesystem's own rm doesn't retry it.
Neither rclone's Drive backend nor google-api-python-client retries a 409, so 2.0 leaves the filesystem as it is.
If a user reports fs.rm() failing with 409 right after a write, add the retry, for reason conflict on delete only. It's safe: if an earlier attempt went through, the repeated delete gets the 404 that the delete code already treats as done.
🤖 Generated with Claude Code
- 主要語言
- Python
- 星號
- 671
- 分支
- 76
- 平均合併
- 17 小時 55 分鐘
- 30 天內合併 PR
- 46
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
iterative/PyDrive2 的其他 Issue
-
Test cleanups after the 2.0 fix PRs可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 65/100
維護者通常 1 天內回覆
-
maintenance priority-p2 tests
難度 2/5 1-3 小時 新手友好度 82/100
iterative/PyDrive2#399 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 58/100
維護者通常 1 天內回覆
-
awaiting response priority-p1 triage
難度 3/5 1-2 天 新手友好度 45/100
iterative/PyDrive2#412 · 1 則留言 ·
維護者通常 1 天內回覆
-
feature request fs priority-p2
難度 5/5 一週以上 新手友好度 35/100
iterative/PyDrive2#236 · 2 則留言 ·
維護者通常 1 天內回覆
查看 iterative/PyDrive2 的全部 Issue
相似的 Issue
-
A JSON chat answer blocks the backend event loop for the whole RAG run可能已有人在做 @NopeCharon 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 85/100
The-OpenROAD-Project/ORAssistant#656 ·
維護者通常 1 天內回覆
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionError可能已有人在做 @jejjohnson 今天認領。 未關閉type:bug
難度 2/5 1-3 小時 新手友好度 72/100
jejjohnson/integrix#144 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
finos/ai-governance-framework#459 ·
-
難度 2/5 1-3 小時 新手友好度 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
freelawproject/litigant-portal#1307 ·
維護者通常 2 天內回覆