From 593d770b4bf720641aae0f313049111f360a623b Mon Sep 17 00:00:00 2001 From: Tao He Date: Mon, 23 May 2022 10:41:48 +0800 Subject: [PATCH] No timeout for leaserevoke. Signed-off-by: Tao He --- src/SyncClient.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/SyncClient.cpp b/src/SyncClient.cpp index c842a51..68f7505 100644 --- a/src/SyncClient.cpp +++ b/src/SyncClient.cpp @@ -898,7 +898,14 @@ std::shared_ptr etcd::SyncClient::leaserevoke_in etcdv3::ActionParameters params; params.lease_id = lease_id; params.auth_token.assign(this->token_authenticator->renew_if_expired()); - params.grpc_timeout = this->grpc_timeout; + // leaserevoke: no timeout + // + // leaserevoke is special, as it calls `Finish()` inside the constructor, the timeout may + // trigger a "SIGABRT" error on Mac + // + // https://github.com/etcd-cpp-apiv3/etcd-cpp-apiv3/runs/6544444692?check_suite_focus=true + // + // params.grpc_timeout = this->grpc_timeout; params.lease_stub = stubs->leaseServiceStub.get(); return std::make_shared(std::move(params)); }