tests: wait until pageserver is ready in NeonPageserver.start #4864
Labels
a/test/flaky
Area: related to flaky tests
a/test
Area: related to testing
c/storage/pageserver
Component: storage: pageserver
m/good_first_issue
Moment: when doing your first Neon contributions
Context: #4856 (comment)
TLDR: In tests we sometimes start some operations immediately after calling pageserver.start which leads to flakiness because sometimes pageserver startup sequence is not fully completed quick enough to be invisible for the test. Most often this is the case when real_s3 remote storage backend is used.
The expected solution is to add to pageserver http endpoint that waits for
init_done_rx
. See things aroundInitializationOrder
.Http endpoint can just block, or polling needs to be implemented on python side.
Initially discussed with @koivunej
The text was updated successfully, but these errors were encountered: