From 3efe4b5478de94e5c56c1ab292c8a42eb02accc0 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 2 Apr 2021 00:58:52 +0000 Subject: [PATCH] increase timeout in TransactionRecorder.record (#16133) (#16314) (cherry picked from commit 06ac0fe9a38461182e3ab678d604642bd031c7e7) Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com> --- core/src/poh_recorder.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/poh_recorder.rs b/core/src/poh_recorder.rs index 7e3c28cd69..474207dca3 100644 --- a/core/src/poh_recorder.rs +++ b/core/src/poh_recorder.rs @@ -115,9 +115,10 @@ impl TransactionRecorder { // the max tick height to stop transaction processing and flush any transactions in the pipeline. return Err(PohRecorderError::MaxHeightReached); } + // Besides validator exit, this timeout should primarily be seen to affect test execution environments where the various pieces can be shutdown abruptly let res = self .result_receiver - .recv_timeout(std::time::Duration::from_millis(2000)); + .recv_timeout(std::time::Duration::from_millis(5000)); match res { Err(_err) => Err(PohRecorderError::MaxHeightReached), Ok(result) => result,