mirror of
https://github.com/livekit/livekit.git
synced 2026-12-06 01:22:22 +00:00
UpdateEgress indexes an ended egress in the ended_egress hash as "<room>|<endedAt>". parseEgressEnded split the value on every "|" and required exactly two parts, so an egress from a room whose name contains "|" could not be parsed. Room names have no character restrictions, so such rooms can exist. CleanEndedEgress returns on the first parse error. The entry is therefore never removed: its egress record, ended_egress entry and egress:room:<room> member stay in Redis, and every node logs "could not clean egress info" every 30 minutes. Entries after it in the hash's iteration order are also skipped for that sweep. Split at the last "|" instead, since the timestamp cannot contain it. The stored format is unchanged, so entries already stuck before this change are cleaned on the next sweep.