Commit 13fb3d2
Increase snap task timeouts to handle cold-cache server latency
The Besu snap server performs synchronous disk I/O (trie proof generation)
on the Netty event loop, which can exceed 5s on cold RocksDB cache. This
caused clients to timeout before receiving a response, accumulating 5
timeout counts and triggering a TIMEOUT disconnect.
Fix: raise GetAccountRangeFromPeerTask timeout to 20s for sync tasks,
10s for the snap server probe, and widen the EthPeers probe wait to 12s.
Also fix SnapServerChecker to complete the future on probe failure so
isServingSnap is not incorrectly set to false.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e1e5751 commit 13fb3d2
File tree
3 files changed
+18
-5
lines changed- ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth
- manager
- snap
- sync
3 files changed
+18
-5
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
657 | | - | |
| 657 | + | |
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| |||
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
75 | 82 | | |
76 | 83 | | |
77 | 84 | | |
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
82 | | - | |
| 89 | + | |
| 90 | + | |
83 | 91 | | |
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
87 | | - | |
88 | | - | |
89 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
90 | 100 | | |
91 | 101 | | |
0 commit comments