From 406f23dc0f29bd4a3f097e933170ef0b389f0367 Mon Sep 17 00:00:00 2001 From: Oleksandr <115580134+oleks-rip@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:46:06 -0500 Subject: [PATCH] Attempt 2 --- src/test/jtx/impl/Env.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/test/jtx/impl/Env.cpp b/src/test/jtx/impl/Env.cpp index a3c1d2a8d00..3cb3b0503df 100644 --- a/src/test/jtx/impl/Env.cpp +++ b/src/test/jtx/impl/Env.cpp @@ -560,9 +560,12 @@ Env::do_rpc( { Json::Value ret; - // Retry 1 - This comment just to make push to ci and retrigger the tests. + static unsigned call_id = 0; // counter to check max retries from one call + + // Retry 2 - This comment just to make push to ci and retrigger the tests. // It will be removed. - for (unsigned ctr = 0; ctr < 6; ++ctr) + ++call_id; + for (unsigned ctr = 0; ctr < 10; ++ctr) { auto response = rpcClient(args, app().config(), app().logs(), apiVersion, headers); @@ -572,7 +575,8 @@ Env::do_rpc( break; } - JLOG(journal.error()) << "Env::do_rpc error, retrying..."; + JLOG(journal.error()) + << "Env::do_rpc error, call_Id: " << call_id << ", retrying..."; std::this_thread::sleep_for(std::chrono::milliseconds(500)); }