Skip to content

Improve debugging, resolve possible out of memory condition - #54

Merged
Firstyear merged 1 commit into
kanidm:mainfrom
Firstyear:20251120-improve-debugging
Nov 21, 2025
Merged

Firstyear merged 1 commit into
kanidm:mainfrom
Firstyear:20251120-improve-debugging

Conversation

@Firstyear

Copy link
Copy Markdown
Member

This improves debugging of handle load/unloads by adding instruments to the function calls so that errors can be better traced, and adding logs for the load/unload events.

These changes revealed an issue in unsealing of data which did not correctly unload after it had completed.

To assist in detection of these issues, tests now loop a number of times which will trigger context failures if objects are not unloaded.

Fixes # himmelblau-idm/himmelblau#740

Checklist

  • This pr contains no AI generated code
  • cargo fmt has been run
  • cargo clippy has been run and there's no issues
  • cargo test has been run and passes

This improves debugging of handle load/unloads by adding instruments
to the function calls so that errors can be better traced, and adding
logs for the load/unload events.

These changes revealed an issue in unsealing of data which did not
correctly unload after it had completed.

To assist in detection of these issues, tests now loop a number of
times which will trigger context failures if objects are not unloaded.
@Firstyear
Firstyear requested review from dmulder and yaleman November 20, 2025 06:05

@dmulder dmulder left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@Firstyear
Firstyear merged commit 17ad835 into kanidm:main Nov 21, 2025
6 checks passed
@Firstyear
Firstyear deleted the 20251120-improve-debugging branch November 21, 2025 02:30
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.

2 participants