Staging instance, all changes can be removed at any time

Skip to content

Make the replayer not crash on kafka messages that fail to be converted as model objects

for example, there are a few kafka directory messages which entries contain the same entry name several times, preventing the Directory model object from being created at all, which make the replayer crash.

This makes the replayer able to handle such cases. When the model object creation fails with a ValueError, the error is reported in the (redis) error reporter, but the replaying process continue.

Since there is no model object, the error is reported with a crafted error key of the form "{object_type}:{object_id}" if an object id is present in the data sctructure, or "{object_type}:uuid:{uuid4}" if such an id is not even present. For the record, the standard error key in redis for a model object is it's swhid (if any).


Migrated from D8751 (view on Phabricator)

Merge request reports

Loading