Skip to content

Commit

Permalink
Merge pull request #32376 from vespa-engine/hmusum/set-infinite-timeout
Browse files Browse the repository at this point in the history
Set timeout for RPC call proton.prepareRestart to infinity
  • Loading branch information
Harald Musum authored Sep 6, 2024
2 parents fe5f455 + 640d85b commit d4654a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion searchcore/src/apps/vespa-proton-cmd/vespa-proton-cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ LOG_SETUP("vespa-proton-cmd");

namespace pandora::rtc_cmd {

namespace {
const double NEVER(-1.0);
}

class App
{
private:
Expand Down Expand Up @@ -325,7 +329,7 @@ class App
}
} else if (strcmp(argv[2], "prepareRestart") == 0) {
_req->SetMethodName("proton.prepareRestart");
invokeRPC(false, 600.0);
invokeRPC(false, NEVER);
invoked = true;
if (! _req->IsError()) {
printf("OK: prepareRestart enabled\n");
Expand Down

0 comments on commit d4654a3

Please sign in to comment.