MON-14511-poller-wait-at-most-5s-to-send-shutdown-event-before-shutdown #351
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.
Description
When you have a poller on a server with one core and a cbd on another server, if you shutdown engine, cbd don't receive engine bye message
So I have added wait methods on grpc and tcp modules and an usleep on config::applier::endpoint::_discard to wait one loop of failover and feeders threads.
Fixes # (issue)
Type of change
Target serie
How this pull request can be tested ?
In order to test install a poller on a one core VM, insall a cbd on another VM. In the poller screen, you have to see the poller shutdown when you shurdown the distant poller.
Any relevant details of the configuration to perform the test should be added.
Checklist