Summary
There are several actor table rows on testwiki with a defined user ID that does not exist in the user table. These entries appear to have been created due to an import of a page to testwiki. This action additionally caused two cu_private_event rows to exist for the auto-creation of the accounts, with duplicated details.
Background
- At 21:39 there were about 1000 warnings created regarding users having no central ID as shown in this logstash query
- Selecting a random selection of the users mentioned in these log entries shows that they appear to have no account on testwiki
- Running the query select * from actor where actor_user not in (select user_id from user); on testwiki shows about 400 actor table rows where the actor_ids are pretty much completely sequential, the actor_user column has a value which does not correspond to an ID in the user table, and the actor_name values appear to match the usernames in the logstash query
- Running the query select * from cu_private_event where cupe_actor = X; (where X is an actor ID from the above query) showed two cu_private_event rows where both indicated an auto-creation of an account had occurred
- The logstash query for other queries around the warning for no central ID finds that this appears to be related to the importing of a page to testwiki
Acceptance criteria
- Ensure that orphaned actor and cu_private_event table rows are not created if the attempts to create the user rows fail