Skip to content

Conversation

AhmedSoliman
Copy link
Contributor

@AhmedSoliman AhmedSoliman commented Aug 6, 2025

Copy link

github-actions bot commented Aug 6, 2025

Test Results

  7 files  ±0    7 suites  ±0   3m 40s ⏱️ -6s
 54 tests ±0   52 ✅  - 1  1 💤 ±0  0 ❌ ±0  1 🔥 +1 
223 runs  ±0  219 ✅  - 1  3 💤 ±0  0 ❌ ±0  1 🔥 +1 

For more details on these errors, see this check.

Results for commit fb00afb. ± Comparison against base commit bb835b4.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@muhamadazmy muhamadazmy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! +1 for merging.

Comment on lines 64 to 79
#[cfg(debug_assertions)]
let labels = [("runtime", runtime.clone())];
#[cfg(debug_assertions)]
gauge!("restate.tokio.num_workers", &labels).set(stats.num_workers() as f64);
#[cfg(debug_assertions)]
gauge!("restate.tokio.blocking_threads", &labels).set(stats.num_blocking_threads() as f64);
#[cfg(debug_assertions)]
gauge!("restate.tokio.blocking_queue_depth", &labels).set(stats.blocking_queue_depth() as f64);
#[cfg(debug_assertions)]
gauge!("restate.tokio.num_alive_tasks", &labels).set(stats.num_alive_tasks() as f64);
#[cfg(debug_assertions)]
gauge!("restate.tokio.io_driver_ready_count", &labels)
.set(stats.io_driver_ready_count() as f64);
gauge!("restate.tokio.remote_schedule_count", "runtime" => runtime.clone())
.set(stats.remote_schedule_count() as f64);
#[cfg(debug_assertions)]
counter!("restate.tokio.remote_schedule_count", &labels)
.absolute(stats.remote_schedule_count());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe group everything in a closure like

#[cfg(debug_assertion)]
{
   gauge!(..);
   ...
}

This has been causing memory leak if it's set to zero so we are removing and it can be later re-introduced if its underlying issues are fixed.
@AhmedSoliman AhmedSoliman merged commit fb00afb into main Aug 6, 2025
54 of 57 checks passed
@AhmedSoliman AhmedSoliman deleted the pr3638 branch August 6, 2025 16:56
@github-actions github-actions bot locked and limited conversation to collaborators Aug 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants