increase timeout in TransactionRecorder.record (#16133) (#16314)

(cherry picked from commit 06ac0fe9a3)

Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2021-04-02 00:58:52 +00:00
committed by GitHub
parent 90e0d4fefe
commit 3efe4b5478

View File

@ -115,9 +115,10 @@ impl TransactionRecorder {
// the max tick height to stop transaction processing and flush any transactions in the pipeline. // the max tick height to stop transaction processing and flush any transactions in the pipeline.
return Err(PohRecorderError::MaxHeightReached); 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 let res = self
.result_receiver .result_receiver
.recv_timeout(std::time::Duration::from_millis(2000)); .recv_timeout(std::time::Duration::from_millis(5000));
match res { match res {
Err(_err) => Err(PohRecorderError::MaxHeightReached), Err(_err) => Err(PohRecorderError::MaxHeightReached),
Ok(result) => result, Ok(result) => result,