fix: include topic frame in KV events replay response (#45177)

Signed-off-by: RishabhSaini <rishabhsaini01@gmail.com>
This commit is contained in:
Rishabh Saini
2026-07-07 14:48:23 -04:00
committed by GitHub
parent d6875196ad
commit 2f3f441f84
4 changed files with 50 additions and 27 deletions
+3 -6
View File
@@ -459,15 +459,12 @@ class ZmqEventPublisher(EventPublisher):
for seq, buf in self._buffer:
if seq >= start_seq:
# [identity, empty_delim, seq_bytes, payload]
# (identity, empty_delim) are stripped off by the router
# receiving payload is (seq_bytes, payload)
# Subscriber receives (topic, seq_bytes, payload)
self._replay.send_multipart(
(client_id, b"", seq.to_bytes(8, "big"), buf)
(client_id, b"", self._topic_bytes, seq.to_bytes(8, "big"), buf)
)
# Send end of sequence marker
# receiving payload is (-1, b""")
self._replay.send_multipart((client_id, b"", self.END_SEQ, b""))
self._replay.send_multipart((client_id, b"", b"", self.END_SEQ, b""))
@staticmethod
def offset_endpoint_port(