There are some weirdness with the optimizer on the query for T304626 - we need to rebuild the logging table on enwiki to refresh the optimizer stats so it picks up the right index.
Not all the hosts have this issue, so this is the list of hosts we need to rebuild the table on:
Some of them in codfw, but let's run it with replication on the master so we don't have to do them one by one
- db1154 (sanitarium - will get it via replication)
- db1118 (master)
- db1106 (sanitarium master to be run with replication)
- clouddb* (will get it via replication)