1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-27 21:01:50 +03:00

MCOL-4071 BRM::send_recv doesn't wait 10 seconds before re-stablishing

the network connection towards workernode
This commit is contained in:
Roman Nozdrin
2021-01-26 14:46:18 +00:00
committed by Roman Nozdrin
parent 59f04c9743
commit 1dde4927f7

View File

@ -877,6 +877,7 @@ int8_t DBRM::send_recv(const ByteStream& in, ByteStream& out) throw()
#endif
bool firstAttempt = true;
bool secondAttempt = true;
mutex.lock();
@ -926,12 +927,16 @@ reconnect:
{
cerr << "DBRM::send_recv: controller node closed the connection" << endl;
if (firstAttempt)
if (secondAttempt)
{
firstAttempt = false;
MessageQueueClientPool::releaseInstance(msgClient);
msgClient = NULL;
sleep(10);
if (!firstAttempt)
{
secondAttempt = false;
sleep(3);
}
firstAttempt = false;
goto reconnect;
}