From 59ea80c7189580e52c44c73322561ebbc7e6a7d3 Mon Sep 17 00:00:00 2001 From: Scott Fairclough Date: Wed, 23 Oct 2024 22:54:06 +0100 Subject: [PATCH] wait longer when not finding new data in the stream --- zk/stages/stage_batches.go | 2 +- zk/tests/unwinds/unwind.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zk/stages/stage_batches.go b/zk/stages/stage_batches.go index 68134232a99..fd465623021 100644 --- a/zk/stages/stage_batches.go +++ b/zk/stages/stage_batches.go @@ -260,7 +260,7 @@ func SpawnStageBatches( log.Warn(fmt.Sprintf("[%s] Context done", logPrefix)) endLoop = true default: - time.Sleep(10 * time.Millisecond) + time.Sleep(1 * time.Second) } // if ds end reached check again for new blocks in the stream diff --git a/zk/tests/unwinds/unwind.sh b/zk/tests/unwinds/unwind.sh index 4941ff68206..d1dad14e132 100755 --- a/zk/tests/unwinds/unwind.sh +++ b/zk/tests/unwinds/unwind.sh @@ -15,8 +15,8 @@ dataPath="./datadir" firstStop=11204 stopBlock=11315 unwindBatch=70 -firstTimeout=120s -secondTimeout=60s +firstTimeout=150s +secondTimeout=150s rm -rf "$dataPath/rpc-datadir" rm -rf "$dataPath/phase1-dump1"