tikv / tikv

Distributed transactional key-value database, originally created to complement TiDB

Home Page:https://tikv.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Occasional memory leak in std mpsc channels and crossbeam channels

overvenus opened this issue · comments

Bug Report

This issue can occur if a sender installs the first block right after all receivers have disconnected and checked for any existing messages, causing a memory leak.

See upstream issue report: rust-lang/rust#121582

To fix this we need to

  • Upgrade crossbeam-channel to v0.5.12 or higher. #17179
  • Upgrade rust nightly toolchain to 2024-02-28

What version of TiKV are you using?

nightly, 2024-6-23