Skip to content

Commit

Permalink
Attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
oleks-rip committed Nov 14, 2024
1 parent 3ff1f43 commit 406f23d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/test/jtx/impl/Env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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));
}

Expand Down

0 comments on commit 406f23d

Please sign in to comment.