hazelcast / hazelcast/hazelcast-python-client

Potential memory leak: lock not removed from proxies when the lock is destroyed [API-2129]

オープン
#643 コメント 1 件 リアクション 0 件 担当者 1 名 @gbarnett-hz が担当を希望しています GitHub で見る
Source: Internal to-jira
主要言語
Python
スター
116
フォーク
78
平均マージ
10日 22時間
マージ済み PR(30日)
1

説明

Creating for visibility in case people think this is worth taking forward.

When you `destroy` a lock that lock is not removed `CPProxyManager._lock_proxies` resulting in a potential memory leak in long running clients that may otherwise destroy a number of locks. Obviously, usual caveats around such destruction.

```python
lock = client.cp_subsystem.get_lock("my-distributed-lock").blocking()
fence = lock.lock()
try:
# do something here
pass
finally:
lock.unlock()

lock.destroy() # <-- the lock proxy is not removed from internal proxy data structure
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。