Skip to content

Revert "logger: avoid mutex contention"#20654

Merged
AskAlexSharov merged 1 commit into
mainfrom
alex/gnosis_stuck_35
Apr 18, 2026
Merged

Revert "logger: avoid mutex contention"#20654
AskAlexSharov merged 1 commit into
mainfrom
alex/gnosis_stuck_35

Conversation

@AskAlexSharov
Copy link
Copy Markdown
Collaborator

@AskAlexSharov AskAlexSharov commented Apr 18, 2026

Reverts #20454

reason: gnosis stuck #20661

Copy link
Copy Markdown
Contributor

@erigon-copilot erigon-copilot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Same reasoning as the release/3.4 revert: the no-mutex logging change is too risky given the blocked-write stacks through streamHandler -> os.File.Write and fdMutex serialization. Restoring SyncHandler for StreamHandler and reintroducing rotatingWriter locking is the safer production choice on main until there is a non-blocking design that preserves correctness under slow stderr/file sinks.

@AskAlexSharov AskAlexSharov added this pull request to the merge queue Apr 18, 2026
Merged via the queue into main with commit 007fd54 Apr 18, 2026
35 of 36 checks passed
@AskAlexSharov AskAlexSharov deleted the alex/gnosis_stuck_35 branch April 18, 2026 14:29
AskAlexSharov added a commit to EthGiveawa375/erigon that referenced this pull request Apr 22, 2026
)

Reverts erigontech#20654

Because I did miss-interpreted stacktrace as deadlock/race inside logger
erigontech#20661 - but it had another
Root-Cause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant