Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
AssigneesNone

Relationships

↔ sibling #4787

#4785 Flaky: replication test 'an owned sidecar whose owner's pid names another process stops' reads a presence record the sidecar already removed

Opened by stack72 · 11/16/2026· Shipped 11/16/2026

Seen in verify-build run 9b57ac2b-6773-4cfc-b15e-5f16f17812c6 (shard 1) at 76526ec95, a branch that does not touch Litestream or its helpers:

integration/datastore_v3_litestream_replication_test.ts, 'v3 replication: an owned sidecar whose owner's pid names another process stops', failed with TypeError: Cannot read properties of undefined (reading 'supervisorPid').

Intermittent: passed 8 of 8 runs alone on the same commit.

Likely cause: the test points the sidecar at an owner whose pid belongs to another process, writes once, then reads the sidecar's presence with presenceOf(env)! . Under OWNED_TIMINGS the sidecar can judge its owner gone and remove its presence record before presenceOf reads it, so the non-null assertion meets undefined. Fix: take the sidecar pid before it can stop (for example from the write's own start), or treat a presence record that is already gone as the sidecar having stopped.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPEDLINKED+ 4 MOREPR_LINKED+ 1 MORESESSION_SUMMARIZED

Shipped

11/16/2026, 11:43:00 AM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 linked sibling of #478711/16/2026, 7:36:06 AM

Sign in to post a ripple.