Netflix/mantis

SSE Streaming Delimiters

codyrioux opened this issue · 0 comments

Context

There is currently a bug in the SSE implementation when compression is enabled. Mantis compiles a batch of data delimiting each event with a fixed delimiter $$$. In the case where an event contains the string $$$ the event will be erroneously split in two and fail to deserialize downstream.

Steps to reproduce

Create a job producing events which contain $$$ and subscribe to it with compression enabled.

Expected behavior

The events should not be incorrectly bifurcated downstream.

Actual Behavior

The events are bifurcated when being decompressed downstream, when the list is split the legitimate contents of the string are misidentified as a delimiter and the event is erroneously bifurcated.