Fix: Handle Controller Restarts
When the Tank controller restarts, it maintains connectivity to its running agents via findAgent() which creates an ec2client per region to pull instance data. This allows the controller to pull each agent's instance URL to send agent commands (start, stop, pause, and kill). Previously, it only did this for a single region (getConfiguredRegions()) - the region the controller was in - resulting in failed calls to agents in other regions. This fixes this issue by looping through all available agent regions (getRegions()), and thus has no issue in connecting to any running agents after a controller restart.
Please make sure these check boxes are checked before submitting
[ ] Squashed Commits
[ ] All Tests Passed - mvn clean test -P default
PR review process
Requires one +1 from a reviewer
Repository owners will merge your PR once it is approved.
Fix: Handle Controller Restarts When the Tank controller restarts, it maintains connectivity to its running agents via
findAgent()
which creates anec2client
per region to pull instance data. This allows the controller to pull each agent's instance URL to send agent commands (start, stop, pause, and kill). Previously, it only did this for a single region (getConfiguredRegions()
) - the region the controller was in - resulting in failed calls to agents in other regions. This fixes this issue by looping through all available agent regions (getRegions()
), and thus has no issue in connecting to any running agents after a controller restart.Please make sure these check boxes are checked before submitting
mvn clean test -P default
PR review process