AER-4181 Fix taskmanager to handle RabbitMQ blocking on memory limit trigger #111
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.
When RabbitMQ runs out of memory it will temporary block tasks on the queue. The taskmanager will than get disconnected. It will handle this, but it didn't update this correctly in the load statistics. As a result the taskmanager reported it was busy while it wasn't actually. This will result in few to none new tasks being put on the queue.
The fix here is a change in the QueueWatchDog. That class now does the actually watching and calls reset to all relevant processes when a watch dog situation appears. Added unit test to test reset conditions in the different classes.
Also update to use the latest aerius parent root pom (to also get ride of junit startup issues in Eclipse).