Skip to content

Match configured record keys in buffer metrics - #469

Merged
lxsaah merged 1 commit into
aimdb-dev:mainfrom
arpanjot-coding:fix/buffer-metrics-record-key
Nov 11, 2026
Merged

lxsaah merged 1 commit into
aimdb-dev:mainfrom
arpanjot-coding:fix/buffer-metrics-record-key

Conversation

@arpanjot-coding

Copy link
Copy Markdown
Contributor

Description

get_buffer_metrics accepts a record key, but the lookup only searched the Rust type name. Match both the configured key and the name, consistent with get_stage_profiling. The regression test uses two records of the same Rust type with different keys and checks that only the requested record is returned.

Related issue

Closes #453.

Validation

  • The regression test returned found: false before the fix and passed after it.
  • Ran all 51 aimdb-mcp tests, cargo fmt --check -p aimdb-mcp, and cargo clippy -p aimdb-mcp --all-targets -- -D warnings in Docker on Rust 1.98.0.
  • The workspace-wide make check passed formatting and reached Clippy for the WebSocket connector before the four-minute Docker test budget expired.

Checklist

  • I have read the contribution guide.
  • My code follows the project's coding standards.
  • I have added tests to cover my changes.
  • All workspace checks passed (make check).
  • I have updated the relevant documentation.

@lxsaah lxsaah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lgtm!

@lxsaah
lxsaah merged commit 4ef7a37 into aimdb-dev:main Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] aimdb-mcp: get_buffer_metrics cannot find a record by its key

2 participants