Closed brendanheywood closed 2 months ago
Interesting. I did take a quick peek during my last issue dig, and writes shouldn't happen for the upgrade path since it is not enabled for moodle_needs_upgrade()
.
If true, it could be due to some other request triggering the write?
I tried replicating this locally, and I couldn't, unless I ran the problematic DELETE from where id NOT IN query, that was recently fixed.
My hypothesis: this is a symptom of the aforementioned bad DELETE query still running in the background. When I restored a prod-like DB state locally and ran the upgrade with no queries running prior, it went through fine, everytime.
Happy with this
One avenue to investigate is to make sure that excimer is not attempting to profile itself during the upgrade, so its trying to write to a table it is deleting from. Might be a complete red herring too