Skip to content

feat(smr): do not schedule the same timeout twice#1508

Open
cason wants to merge 11 commits intocirclefin:mainfrom
cason:duplicated-timeouts-smr
Open

feat(smr): do not schedule the same timeout twice#1508
cason wants to merge 11 commits intocirclefin:mainfrom
cason:duplicated-timeouts-smr

Conversation

@cason
Copy link
Contributor

@cason cason commented Feb 27, 2026

Closes: #1500

Alternative to #1501.

Creates a scheduled_timeouts boolean array in the state machine State, which is reset to false at every round. Before scheduling a timeout for a given TimeoutKind, checks if the corresponding slot of the array is taken. If not, mark is as taken an return the timeout as output. Otherwise, don't produce a duplicate Timeout event.

In other to prevent tests from breaking, scheduled_timeouts is not considered for PartialEq comparisons.

@github-actions

This comment was marked as outdated.

@github-actions github-actions bot added the need-triage This issue needs to be triaged label Feb 27, 2026
@github-actions github-actions bot closed this Feb 27, 2026
@romac romac removed the need-triage This issue needs to be triaged label Feb 27, 2026
@romac romac reopened this Feb 27, 2026
@github-actions

This comment was marked as off-topic.

@github-actions github-actions bot added the need-triage This issue needs to be triaged label Feb 27, 2026
@github-actions github-actions bot closed this Feb 27, 2026
@romac romac reopened this Feb 27, 2026
@romac romac removed the need-triage This issue needs to be triaged label Feb 27, 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.

fix(driver): Prevent scheduling identical timeouts

2 participants