-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
safekeeper: refactor
WalAcceptor
to be event-driven (#9462)
## Problem The `WalAcceptor` main loop currently uses two nested loops to consume inbound messages. This makes it hard to slot in periodic events like metrics collection. It also duplicates the event processing code, and assumes all messages in steady state are AppendRequests (other messages types may be dropped if following an AppendRequest). ## Summary of changes Refactor the `WalAcceptor` loop to be event driven.
- Loading branch information
1 parent
3bad525
commit 248558d
Showing
1 changed file
with
62 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
248558d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5274 tests run: 5051 passed, 1 failed, 222 skipped (full report)
Failures on Postgres 17
test_crafted_wal_end[simple]
: debug-x86-64Flaky tests (2)
Postgres 17
test_replica_query_race
: release-x86-64test_pg_regress[None]
: release-arm64Test coverage report is not available
248558d at 2024-10-28T18:51:14.415Z :recycle: