WIP: convert compute_ctl to use background_process

This commit is contained in:
Christian Schwarz
2024-01-25 19:55:01 +00:00
parent cf916b9be8
commit 51f1671c6b
3 changed files with 74 additions and 77 deletions

View File

@@ -24,7 +24,7 @@ def wait_caughtup(primary: Endpoint, secondary: Endpoint):
# Check for corrupted WAL messages which might otherwise go unnoticed if
# reconnection fixes this.
def scan_standby_log_for_errors(secondary):
log_path = secondary.endpoint_path() / "compute.log"
log_path = secondary.endpoint_path() / "compute_ctl.log"
with log_path.open("r") as f:
markers = re.compile(
r"incorrect resource manager data|record with incorrect|invalid magic number|unexpected pageaddr"

View File

@@ -8,7 +8,7 @@ def test_migrations(neon_simple_env: NeonEnv):
env.neon_cli.create_branch("test_migrations", "empty")
endpoint = env.endpoints.create("test_migrations")
log_path = endpoint.endpoint_path() / "compute.log"
log_path = endpoint.endpoint_path() / "compute_ctl.log"
endpoint.respec(skip_pg_catalog_updates=False, features=["migrations"])
endpoint.start()