Repository navigation
fix(naming): redo failure handling, guard cleanup, snapshot reuse - #344
Merged
Merged
Conversation
Redo steps only inspected the transport result, so a response carrying a non-success result code was recorded as success. `call_back(Ok(()))` then freezes the task, silently dropping the instance or subscription it was supposed to apply. Route every macro response through `handle_response` so business errors keep the task retrying. Co-authored-by: Qoder <noreply@qoder.com>
The handshake kept a private guard for the stream pump while the supervisor hand-rolled an `abort()` in `ActiveConnection::drop`, and every `serve()` return had to remember to call it. `JoinHandle::drop` only detaches, so a missed call leaks the task. Share one `AbortOnDrop` type in the connection module; dropping the owning structure is now sufficient on every path. Co-authored-by: Qoder <noreply@qoder.com>
Cluster-scoped listeners each cloned and filtered the full instance list on every push, even when the push already matched their clusters. Keep the pushed Arc when every instance matches, and share one filtered snapshot per identical cluster list within a single push. Co-authored-by: Qoder <noreply@qoder.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
result_codecounted as success and froze the task viacall_back(Ok(())), silently losing the instance or subscription. Every macro response now goes throughhandle_response.ActiveConnection::drop's hand-rolledabort()are unified into oneAbortOnDrop.JoinHandle::droponly detaches, so the old design required everyserve()return path to callabort(); now dropping the owning structure is sufficient.Arcunchanged, and listeners sharing an identical cluster list share one filtered snapshot per push.No public API changes.
Test plan
cargo fmt --all -- --checkcargo clippy --all-features -- -D warningscargo test --all-features --lib— 272 passed, 0 failed, 2 ignored