Azure / Azure/azure-sdk-for-rust

Cosmos Driver: Restore collection macOS machine diagnostics

Open
#3,970 0 comments 0 reactions 0 assignees View on GitHub
Cosmos
Dominant language
Rust
Stars
884
Forks
365
Avg merge
2d 19h
Merged PRs (30d)
109

Description

In #3951 I removed the collection of machine diagnostics (CPU/memory usage) on macOS because it was causing a SIGBUS crash (Copilot suspected mis-alignment of the struct but I wasn't able to resolve it so I just removed it). While macOS isn't a key deployment scenario, it would be good to have full diagnostics on macOS, so we should look at restoring it and fixing the bug in it.

Contributor guide

Open the contributing guide

Research direction

Start with the changes in #3951 and trace the Cosmos driver's macOS machine-diagnostics path, focusing on the removed CPU and memory collection and the SIGBUS crash. Reproduce or investigate the macOS failure, then verify that full diagnostics are restored without triggering the crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.