Repository navigation
v2.26.8
Patch release.
Fixed
When a maximum subscriptions exceeded -ERR drops the shared reply inbox, its UNSUB is now written only on the connection the inbox was dropped on (#193).
The client releases a dropped inbox because the -ERR may have been another subscription's, in which case the server still holds the inbox. Up to now, that pending release survived a reconnect. Two things followed:
- An inbox dropped on a connection that was then lost got its
UNSUBagain on the new connection, which never held it. - A replayed inbox that the new server rejected got a second
UNSUBafter the one the replay writes.
A reconnect now forgets the old connection's pending releases, as it already did for JetStream's guarded inboxes (#175). An UNSUB the replay writes settles that inbox's release, so it isn't written again.
Who should upgrade: anyone who wants the wire free of redundant UNSUBs after reconnects at the subscription limit. The server ignores an UNSUB for a sid it doesn't hold, so nothing was lost or held. There are no API changes.
Before upgrading
- Same-connection releases are unchanged. An inbox dropped for another subscription's
-ERRand still held by the server is released by the next request's install, ahead of the newSUB, or by a drain (#213).
Quality gates
- PHPStan level 8.
- 3653 unit tests (with data sets) on PHP 8.2 to 8.5, 159 live integration tests and 49 Behat scenarios. All runnable examples pass.
codecov/patch100%: every changed line is covered. Total coverage 99.05%.- Infection covered MSI 92.82% (90% floor enforced in CI). It skipped 5001 of the 8859 mutants it generated as too slow, so the score does not include them. No mutant escaped in the changed lines.
- New
MuxReleaseAcrossReconnectTest, 11 cases over a server that enforces a subscription limit. 8 of them fail on 2.26.5. - Each half of the fix was tried alone (clear at reconnect only, settle in the replay only), and each fails cases: 5 and 3 respectively.
- The push run's E2E job for the fix commit hit the known flaky
testAPullConsumerRunEndedByATerminalStatusHandsOverWhatALaterPullReceivedAfterIt(#211). The PR run of the same commit passed.
The full record is in the CHANGELOG.