Skip to content

Change the timeout to drop unacked messages to 60 seconds#161

Merged
BYGX-wcr merged 2 commits into
sonic-net:masterfrom
BYGX-wcr:tune-unack-message-timeout
May 11, 2026
Merged

Change the timeout to drop unacked messages to 60 seconds#161
BYGX-wcr merged 2 commits into
sonic-net:masterfrom
BYGX-wcr:tune-unack-message-timeout

Conversation

@BYGX-wcr
Copy link
Copy Markdown
Contributor

@BYGX-wcr BYGX-wcr commented May 8, 2026

What I did
Change the timeout to drop unacked messages to 60 seconds.

Why I did it
Previously, an actor message will not be dropped until it waits in the queue for an hour. In cases where unacked messages are inevitable, this can block the deletion of an actor.

How I verified it

Details if related

Signed-off-by: BYGX-wcr <wcr@live.cn>
Copilot AI review requested due to automatic review settings May 8, 2026 22:48
@mssonicbld
Copy link
Copy Markdown

/azp run

@BYGX-wcr BYGX-wcr requested a review from yue-fred-gao May 8, 2026 22:48
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the swbus-actor outgoing-message maintenance logic to shorten the time window before unacked messages are dropped, aiming to prevent long-lived unacked messages from blocking actor deletion.

Changes:

  • Reduced the “drop unacked messages” timeout from 1 hour to 60 seconds in the outgoing maintenance loop.
  • Updated the inline comment to reflect the new timeout.

Comment thread crates/swbus-actor/src/state/outgoing.rs
@BYGX-wcr BYGX-wcr requested a review from zjswhhh May 8, 2026 23:00
Signed-off-by: BYGX-wcr <wcr@live.cn>
@mssonicbld
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@BYGX-wcr BYGX-wcr merged commit d35cee1 into sonic-net:master May 11, 2026
4 checks passed
@BYGX-wcr BYGX-wcr deleted the tune-unack-message-timeout branch May 11, 2026 16:58
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.

4 participants