Improper lock usage leads to inode overflow in LockLocalStorage implementation
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
- #2172 來自 @Sanjays2402 —— 已關閉,未合併
評估
研究方向
從 libcloud/storage/drivers/local.py 中本機驅動程式的 exit 方法開始,檢查 InterProcessLock 釋放鎖定後如何處理鎖定檔案名稱。使用有針對性的測試或重現來確認行為,然後驗證已釋放的鎖定檔案不再遺留在 /tmp 中,同時不影響遺失檔案的清理。
由索引模型根據 Issue 內容生成。
描述
Summary
Behaviour of fasteners.InterProcessLock is pretty weird: class creates a lockfile by provided path, if it doesn't exist, but not manage to remove it after lock is released.
It may lead to uncontrolled lockfiles spam in /tmp folder just because libcloud local driver is not removing this lockfile either.
Detailed Information
This issue encountered in cassandra-medusa v0.15 and lower, which was using apache-libcloud<3.4.0,>=3.3.0 as a dependency.
Please see https://github.com/thelastpickle/cassandra-medusa/issues/528 for more details.
Seems like the lightweight fix is to run
with contextlib.suppress(FileNotFoundError):
os.remove(filename)
just right in the exit method.
- 主要語言
- Python
- 星號
- 2.1k
- 分支
- 935
- 平均合併
- 5 天 3 小時
- 30 天內合併 PR
- 15
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
apache/libcloud 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
難度 1/5 1-3 小時 新手友好度 88/100
維護者通常 1 天內回覆
-
Local range download leaves an output file after source-read failure despite delete_on_failure=True未關閉
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 15/100
apache/libcloud#2215 · 3 則留言 · 2 個 reaction ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 35/100
維護者通常 1 天內回覆
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 85/100
-
難度 2/5 1-3 小時 新手友好度 62/100
OCA/account-invoicing#2529 ·
維護者通常 1 天內回覆
-
area/ci
難度 1/5 1 小時以內 新手友好度 62/100
維護者通常 1 天內回覆
-
ImageGen generate-batch aborts valid JSONL jobs containing a Unicode line separator in poster text未關閉bug imagen skills
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
Email validation accepts a trailing newline可能已有人在做 @marcello-pichini 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆