mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 06:23:47 +00:00
eth/downloader: don't log stale access list reservations as errors (#35493)
Since #35386 blocks are delivered without waiting for their access list, a reserved BAL task can outlive its block and hit the stale branch of `reserveHeaders`, which logs at error level — demote that case to debug. --------- Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
This commit is contained in:
parent
3735c34ffe
commit
b3e26093ec
1 changed files with 12 additions and 1 deletions
|
|
@ -594,7 +594,18 @@ func (q *queue) reserveHeaders(p *peerConnection, count int, taskPool map[common
|
|||
taskQueue.PopItem()
|
||||
progress = true
|
||||
delete(taskPool, header.Hash())
|
||||
log.Error("Fetch reservation already delivered", "number", header.Number.Uint64())
|
||||
|
||||
// Access lists are a best-effort component that block delivery
|
||||
// never waits on, so a retrieval task outliving the delivery of
|
||||
// its block is expected rather than a sign of queue corruption.
|
||||
// It happens whenever a request in flight across the delivery is
|
||||
// handed back afterwards, be it by the peer not possessing the
|
||||
// list, by a timeout or by a disconnect.
|
||||
if kind == balType {
|
||||
log.Debug("Access list reservation already delivered", "number", header.Number.Uint64())
|
||||
} else {
|
||||
log.Error("Fetch reservation already delivered", "number", header.Number.Uint64())
|
||||
}
|
||||
continue
|
||||
}
|
||||
if throttle {
|
||||
|
|
|
|||
Loading…
Reference in a new issue