Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): release lock before async save to prevent deadlock #1567

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

hubcio
Copy link
Contributor

@hubcio hubcio commented Feb 21, 2025

  • In consumer_offsets.rs, clone the consumer offset's path and
    drop the mutable guard before awaiting the async save.
  • Refactor save_consumer_offset to accept a new offset value
    and path instead of a ConsumerOffset reference.
  • Update error messages and trace logs accordingly.
  • Bump version in Cargo.toml from 0.4.210 to 0.4.211.

@hubcio hubcio force-pushed the dashmap-deadlock branch 2 times, most recently from 6c46ab1 to a7fa4e5 Compare February 21, 2025 13:51
spetz
spetz previously approved these changes Feb 21, 2025
- In `consumer_offsets.rs`, clone the consumer offset's path and
  drop the mutable guard before awaiting the async save.
- Refactor `save_consumer_offset` to accept a new offset value
  and path instead of a ConsumerOffset reference.
- Update error messages and trace logs accordingly.
- Bump version in Cargo.toml from 0.4.210 to 0.4.211.
@spetz spetz merged commit 1f246c7 into master Feb 21, 2025
14 checks passed
@spetz spetz deleted the dashmap-deadlock branch February 21, 2025 14:44
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