Commit e891996
Keep EmbeddedArchive probe open to prevent AWAIT_PUBLICATION_CONNECTED race
The WaitForArchiveReady probe was disposed immediately after confirming the
archive was up. On Windows CI this created a race: between REMOVE_PUBLICATION
(from the probe) and the test's own ADD_PUBLICATION, the archive briefly had no
subscriber on its control channel and stopped sending Status Messages. The new
publication would then timeout after 10s at AWAIT_PUBLICATION_CONNECTED.
Fix: store the probe AeronArchive as a field and keep it alive for the full
lifetime of the EmbeddedArchive instance. The probe is disposed in Dispose()
after the JVM is killed (where it's safe and fast since OwnsAeronClient=false),
and in KillProcess() before killing so pub/sub are cleanly removed first.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a5dc720 commit e891996
1 file changed
Lines changed: 16 additions & 1 deletion
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
156 | 162 | | |
157 | 163 | | |
158 | 164 | | |
| |||
172 | 178 | | |
173 | 179 | | |
174 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
175 | 186 | | |
176 | 187 | | |
177 | 188 | | |
| |||
251 | 262 | | |
252 | 263 | | |
253 | 264 | | |
254 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
255 | 270 | | |
256 | 271 | | |
257 | 272 | | |
| |||
0 commit comments