Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions db/kv/kv_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,10 @@ type TemporalDebugDB interface {

Files() []string
MergeLoop(ctx context.Context) error
// StartMergeLoopBackground spawns a background merge goroutine and registers
// it with the aggregator's WaitGroup before launching it, so that Close/
// wg.Wait cannot observe a zero count before the goroutine has started.
StartMergeLoopBackground(ctx context.Context, onErr func(error))
}

// FlushConfig holds optional behaviour for TemporalMemBatch.Flush, populated by
Expand Down
3 changes: 3 additions & 0 deletions db/kv/remotedb/kv_remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ func (db *DB) EnableReadAhead() kv.TemporalDebugDB { panic("not
func (db *DB) DisableReadAhead() { panic("not implemented") }
func (db *DB) Files() []string { panic("not implemented") }
func (db *DB) MergeLoop(ctx context.Context) error { panic("not implemented") }
func (db *DB) StartMergeLoopBackground(_ context.Context, _ func(error)) {
panic("not implemented")
}
func (db *DB) BeginTemporalRo(ctx context.Context) (kv.TemporalTx, error) {
t, err := db.BeginRo(ctx) //nolint:gocritic
if err != nil {
Expand Down
4 changes: 4 additions & 0 deletions db/kv/temporal/kv_temporal.go
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,10 @@ func (db *DB) MergeLoop(ctx context.Context) error {
return db.stateFiles.MergeLoop(ctx)
}

func (db *DB) StartMergeLoopBackground(ctx context.Context, onErr func(error)) {
db.stateFiles.StartMergeLoopBackground(ctx, onErr)
}

func (tx *Tx) DomainFiles(domain ...kv.Domain) kv.VisibleFiles {
return tx.aggtx.DomainFiles(domain...)
}
Expand Down
15 changes: 15 additions & 0 deletions db/state/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,21 @@
return a.mergeLoop(ctx)
}

// StartMergeLoopBackground spawns a background goroutine that runs MergeLoop.
// It calls wg.Add(1) synchronously before launching the goroutine, so that a
// concurrent Close/wg.Wait can never observe a zero count before the merge
// goroutine has registered itself. The caller should use this instead of

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-stable-race-osaka-parallel

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-devnet-race-amsterdam

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-stable-race-pre-cancun-sequential

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-stable-race-cancun-sequential

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-stable-race-pre-cancun-parallel

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-stable-race-prague-sequential

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-stable-race-prague-parallel

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-stable-race-osaka-sequential

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-stable-race-cancun-parallel

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, other, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, execution-tests, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-zkevm-witness-race

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, execution-tests, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, other, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / lint / lint

a.wg.Add undefined (type closingWaitGroup has no field or method Add) (typecheck)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, consensus, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, consensus, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, core-rpc, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, core-rpc, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, core-rpc, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, core-rpc, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, core-rpc, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, core-rpc, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, core-rpc, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, core-rpc, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / bench / benchmarks (parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / bench / benchmarks (parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / bench / benchmarks (parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / bench / benchmarks (parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / bench / benchmarks (serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / bench / benchmarks (serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / bench / benchmarks (serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / bench / benchmarks (serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, execution-other, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / sonar / sonar

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / sonar / sonar

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / sonar / sonar

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / sonar / sonar

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / sonar / sonar

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, execution-other, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-devnet-race-amsterdam

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-zkevm-witness-race

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-stable-race-cancun-sequential

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-stable-race-osaka-parallel

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-stable-race-cancun-parallel

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, other, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-stable-race-pre-cancun-sequential

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, execution-tests, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-stable-race-osaka-sequential

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-stable-race-pre-cancun-parallel

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-stable-race-prague-parallel

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / lint / lint

a.wg.Add undefined (type closingWaitGroup has no field or method Add) (typecheck)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / eest-spec-tests / eest-spec-blocktests-stable-race-prague-sequential

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, execution-tests, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, other, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, consensus, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, core-rpc, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, core-rpc, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, core-rpc, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, core-rpc, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, consensus, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, core-rpc, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, core-rpc, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, core-rpc, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, core-rpc, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, execution-other, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / bench / benchmarks (parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / bench / benchmarks (parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / bench / benchmarks (parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / bench / benchmarks (parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / sonar / sonar

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / sonar / sonar

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / sonar / sonar

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / sonar / sonar

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / sonar / sonar

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / bench / benchmarks (serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / bench / benchmarks (serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / bench / benchmarks (serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / bench / benchmarks (serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / race-tests / tests-linux (ubuntu-latest, execution-other, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (ubuntu-24.04, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (macos-15, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, serial)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)

Check failure on line 1236 in db/state/aggregator.go

View workflow job for this annotation

GitHub Actions / tests / tests-mac-linux (windows-2025, parallel)

a.wg.Add undefined (type closingWaitGroup has no field or method Add)
// manually wrapping MergeLoop in a goroutine to avoid the wg.Add/wg.Wait race.
func (a *Aggregator) StartMergeLoopBackground(ctx context.Context, onErr func(error)) {
a.wg.Add(1)
go func() {
defer a.wg.Done()
if err := a.mergeLoop(ctx); err != nil && onErr != nil {
onErr(err)
}
}()
}

func (a *Aggregator) mergeLoop(ctx context.Context) (err error) {
if dbg.NoMerge() || !a.mergingFiles.CompareAndSwap(false, true) {
return nil // currently merging or merge is prohibited
Expand Down
8 changes: 3 additions & 5 deletions node/eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -1129,11 +1129,9 @@ func New(ctx context.Context, stack *node.Node, config *ethconfig.Config, logger
}

if !dbg.NoBackgroundMaintenance() {
go func() {
if err := temporalDb.Debug().MergeLoop(ctx); err != nil {
logger.Error("snapashot merge loop error", "err", err)
}
}()
temporalDb.Debug().StartMergeLoopBackground(ctx, func(err error) {
logger.Error("snapashot merge loop error", "err", err)
})
}

return backend, nil
Expand Down
Loading