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

Đang mở
#643 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@gbarnett-hz đang làm issue này rồi.

Từ ngày 4/9/2023.

  • #644 của @gbarnett-hz — đã đóng, không merge

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Source: Internal to-jira

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.

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
Ngôn ngữ chính
Python
Star
115
Fork
78
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của hazelcast/hazelcast-python-client

Tất cả issue của hazelcast/hazelcast-python-client

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.