From 663ac63e9372aed5212496f1cc2cdb5177b23b4e Mon Sep 17 00:00:00 2001 From: obdev Date: Wed, 18 Oct 2023 03:43:32 +0000 Subject: [PATCH] [CP] fix: change gts wait time to 1s to avoid gts repeatedly timeout --- src/storage/tx/ob_trans_service_v4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/tx/ob_trans_service_v4.cpp b/src/storage/tx/ob_trans_service_v4.cpp index 9dba428b4..0ea0d5e6f 100755 --- a/src/storage/tx/ob_trans_service_v4.cpp +++ b/src/storage/tx/ob_trans_service_v4.cpp @@ -1739,7 +1739,7 @@ int ObTransService::acquire_global_snapshot__(const int64_t expire_ts, const MonotonicTs now0 = get_req_receive_mts_(); const MonotonicTs now = now0 - MonotonicTs(gts_ahead); int retry_times = 0; - const int MAX_RETRY_TIMES = 100; + const int MAX_RETRY_TIMES = 2000; // 2000 * 500us = 1s do { int64_t n = ObClockGenerator::getClock(); MonotonicTs rts(0);