1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-4337 Controllernode now tries to establish connections to

all workernodes when initialising
There is a new corresponding XML config options
DBRM_Controller.WorkerConnectionTimeout that controls how long
controllernode waits for wns before it proceeds
This commit is contained in:
Roman Nozdrin
2020-10-08 12:09:35 +00:00
parent d85fc579ba
commit cfce821513
5 changed files with 96 additions and 371 deletions

View File

@ -81,6 +81,8 @@ namespace BRM
* \endcode
*/
constexpr size_t connectTimeoutStep = 50000;
class MasterDBRMNode
{
public:
@ -140,6 +142,13 @@ public:
{
return readOnly;
}
/** @brief Connects to the all workers */
void connectToWorkers(const size_t connectTimeoutSecs);
/** @brief Extracts number of workers and connection timeout from the config */
void getNumWorkersAndTimeout(size_t& connectTimeoutSecs,
const std::string& methodName,
config::Config* config);
private: