Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
downloader:
.Completed()
method race fix (#12383)
``` WARNING: DATA RACE Read at 0x00c001bee46c by goroutine 599: github.com/erigontech/erigon-lib/downloader.(*Downloader).Completed() github.com/erigontech/erigon-lib@v0.0.0-00010101000000-000000000000/downloader/downloader.go:2933 +0x4b github.com/erigontech/erigon-lib/downloader.(*GrpcServer).Completed() github.com/erigontech/erigon-lib@v0.0.0-00010101000000-000000000000/downloader/downloader_grpc_server.go:153 +0x12 github.com/erigontech/erigon-lib/direct.(*DownloaderClient).Completed() github.com/erigontech/erigon-lib@v0.0.0-00010101000000-000000000000/direct/downloader_client.go:53 +0x5b github.com/erigontech/erigon/turbo/snapshotsync.WaitForDownloader() github.com/erigontech/erigon/turbo/snapshotsync/snapshotsync.go:372 +0x133a github.com/erigontech/erigon/eth/stagedsync.DownloadAndIndexSnapshotsIfNeed() github.com/erigontech/erigon/eth/stagedsync/stage_snapshots.go:274 +0xead github.com/erigontech/erigon/eth/stagedsync.SpawnStageSnapshots() github.com/erigontech/erigon/eth/stagedsync/stage_snapshots.go:186 +0x1e5 github.com/erigontech/erigon/eth/stagedsync.PipelineStages.func1() github.com/erigontech/erigon/eth/stagedsync/default_stages.go:199 +0x18f github.com/erigontech/erigon/eth/stagedsync.(*Sync).runStage() github.com/erigontech/erigon/eth/stagedsync/sync.go:531 +0x285 github.com/erigontech/erigon/eth/stagedsync.(*Sync).Run() github.com/erigontech/erigon/eth/stagedsync/sync.go:410 +0x593 github.com/erigontech/erigon/turbo/stages.ProcessFrozenBlocks() github.com/erigontech/erigon/turbo/stages/stageloop.go:149 +0x19a github.com/erigontech/erigon/turbo/execution/eth1.(*EthereumExecutionModule).Start() github.com/erigontech/erigon/turbo/execution/eth1/ethereum_execution.go:344 +0x1ab github.com/erigontech/erigon/eth.(*Ethereum).Start.gowrap1() github.com/erigontech/erigon/eth/backend.go:1516 +0x4f Previous write at 0x00c001bee468 by goroutine 436: github.com/erigontech/erigon-lib/downloader.(*Downloader).ReCalcStats() github.com/erigontech/erigon-lib@v0.0.0-00010101000000-000000000000/downloader/downloader.go:2285 +0x315a github.com/erigontech/erigon-lib/downloader.(*Downloader).mainLoop() github.com/erigontech/erigon-lib@v0.0.0-00010101000000-000000000000/downloader/downloader.go:1394 +0xeb6 github.com/erigontech/erigon-lib/downloader.(*Downloader).MainLoopInBackground.func1() github.com/erigontech/erigon-lib@v0.0.0-00010101000000-000000000000/downloader/downloader.go:796 +0xb6 ```
- Loading branch information