Describe the bug
When a rollup parent writes to a setup object, such as User, and writing to the User has a problem so a log entry needs to be written we run into a MIXED_DML_OPERATION situation.
To Reproduce
Add a validation rule that matches at least one of your current records. Add a rollup that has the User as the parent and any child such as Account, using the OwnerId relationship.
Start a Full Calculate, knowing it will reject at least one record, it should result in the transaction crashing because it was unable to write to the logs.
(I haven't tested this yet, it may need a partial success before the log writing)
Expected behavior
When a full calculate fails to update a setup entity it should be able to write a log entry detailing the problem. This might need to be handled asynchronously if writing fails the first time.
Additional context
Originating TBC Link: https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000bFO1R