KeyError: 'current_state_events_stream_ordering_idx'
File "synapse/storage/background_updates.py", line 405, in run_background_updates
result = await self.do_next_background_update(sleep)
File "synapse/storage/background_updates.py", line 528, in do_next_background_update
update_info = self._background_update_handlers[self._current_background_update]
Specifically appears to be missing in BackgroundUpdates._background_update_handlers, but adding some logging indicates it is being registered as a background update:
This issue has been migrated from #16054.
Description
We're seeing a
KeyError
on the recent updates introduced by https://github.com/matrix-org/synapse/commit/11e15d79b8a0af593fd9467e0cc7f8a9dfcb6c4f:Specifically appears to be missing in
BackgroundUpdates._background_update_handlers
, but adding some logging indicates it is being registered as a background update:If I run locally with sqlite there is no error, but I can't see any codepath that would change the behaviour for postgres 🤔