Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Integration test for routing scenarios Integration testing: encoding and get_all/set_all commands Signed-off-by: lukedigiovanna <lukedigiovanna@gmail.com> * Base routing logic Add 'rerouted' field to AdminCommandRequest scheme Change getPrimaryNodes to get vector instead of list Use pointers for out parameters Signed-off-by: lukedigiovanna <lukedigiovanna@gmail.com> * Response formatting Signed-off-by: lukedigiovanna <lukedigiovanna@gmail.com> * Add parameter to indicate that a command is from a reroute Signed-off-by: lukedigiovanna <lukedigiovanna@gmail.com> * Refactored to cleanly support routing to the cluster Signed-off-by: lukedigiovanna <lukedigiovanna@gmail.com> * Better response formatting for multiple responses Signed-off-by: lukedigiovanna <lukedigiovanna@gmail.com> * Better resolve name of self cluster Signed-off-by: lukedigiovanna <lukedigiovanna@gmail.com> * Add error message to FORCE_GC_QUEUEs when executing on non-primary Signed-off-by: lukedigiovanna <lukedigiovanna@gmail.com> * Abstract routing logic to mqba_commandrouter Signed-off-by: lukedigiovanna <lukedigiovanna@gmail.com> * Implement single partition primary routing Signed-off-by: lukedigiovanna <lukedigiovanna@gmail.com> * Refactor 'Router' to 'RoutingMode' Signed-off-by: lukedigiovanna <lukedigiovanna@gmail.com> * Rename CommandRouter to RouteCommandManager Signed-off-by: lukedigiovanna <lukedigiovanna@gmail.com> * Use schema for route response Signed-off-by: lukedigiovanna <lukedigiovanna@gmail.com> * Refactor to only create the necessary RoutingMode object Signed-off-by: lukedigiovanna <lukedigiovanna@gmail.com> * Utilize JsonPrinter and HumanPrinter to print route responses Signed-off-by: lukedigiovanna <lukedigiovanna@gmail.com> * Change getPrimaryNodes to get only activate primaries Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * Add option SET_ALL and GET_ALL for storage replication and state elector commands Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * Add proper JSON formatting to responses output Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * Clearer naming and straight-forward data path for collecting route nodes Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * JSON Encoding: use correct encoding for error when failed to route command Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * Attempt to load domain when not found when getting relevant cluster for route Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * Add error message when routing fails due to inactive/no primary Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * Remove rerouted field from AdminCommand Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * Add license Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * Add documentation Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * Modify mqbcmd_parseutil.t to accomodate new tunable commands Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * Change IT to take advantage of all-cluster routing Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * Bug fix: deadlock issue on simultaneously routed commands Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * Add parallel execution IT Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * Documentation and code cleaning Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * Make route command timeout optionally configurable Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * Remove redundant license in mqbcmd_messages.h Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> * Remove redundant license in mqbcfg_messages.h Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com> --------- Signed-off-by: lukedigiovanna <lukedigiovanna@gmail.com> Signed-off-by: Luke DiGiovanna <lukedigiovanna@gmail.com>
- Loading branch information