🦗 fix: Deliver Abort Acknowledgements on Zero-Subscriber Replicas (#14569)

This commit is contained in:
Danny Avila 2026-08-01 09:00:41 -04:00 committed by GitHub
parent 3dc5532111
commit 9fbea04d46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -505,9 +505,13 @@ export class RedisEventTransport implements IEventTransport {
try {
const parsed = JSON.parse(message) as PubSubMessage;
/** Aborts, preempts, and abort acknowledgements are consumed by
* transport-internal waiters (e.g. pending-ack resolution), not SSE
* subscribers, so they must flow even with zero local subscribers. */
if (
streamState.count === 0 &&
parsed.type !== EventTypes.ABORT &&
parsed.type !== EventTypes.ABORT_ACK &&
parsed.type !== EventTypes.PREEMPT
) {
return;