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: End tick_loop() when the receiver is gone. #930

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

schreter
Copy link
Collaborator

@schreter schreter commented Nov 13, 2023

Currently, tick_loop() would keep printing the trace message every tick even when the receiver (Raft main loop) is gone in this form:

INFO openraft::core::tick: .../tick.rs:70: Tick fails to send, receiving end quit: channel closed

If the tick message fails to send, then terminate the loop, since every future message will fail to send as well.

Also adjust the trace message to better describe what happened.


This change is Reviewable

Currently, `tick_loop()` would keep printing the trace message every
tick even when the receiver (Raft main loop) is gone in this form:

`INFO openraft::core::tick: .../tick.rs:70: Tick fails to send, receiving end quit: channel closed`

If the tick message fails to send, then terminate the loop, since every
future message will fail to send as well.

Also adjust the trace message to better describe what happened.
Copy link
Member

@drmingdrmer drmingdrmer left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ariesdevil)

@drmingdrmer drmingdrmer added this pull request to the merge queue Nov 14, 2023
Merged via the queue into databendlabs:main with commit f41729a Nov 14, 2023
26 checks passed
@schreter schreter deleted the mute_tick branch November 14, 2023 13:45
@drmingdrmer drmingdrmer mentioned this pull request Mar 9, 2024
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