You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a situation where when the instance becomes a leader and when it becomes a follower it has to perform some tasks which could take some time. Is it ok for NuRaft to block the thread which called the callback for some indefinite amount of time or should I do tasks asynchronously?
The text was updated successfully, but these errors were encountered:
If you are talking about the BecomeLeader and BecomeFollower callbacks, these are triggered by the NuRaft workers. Hence, it is advised not to perform any long-duration blocking tasks within these callbacks. Instead, handling such tasks asynchronously would be more preferred.
Hi, I have a situation where when the instance becomes a leader and when it becomes a follower it has to perform some tasks which could take some time. Is it ok for NuRaft to block the thread which called the callback for some indefinite amount of time or should I do tasks asynchronously?
The text was updated successfully, but these errors were encountered: