WikiPage::insertRedirectEntry queries could take sixteen seconds to run, or timeout when done on de.wikipedia, a wiki hosted on s3.
A search on *insertRedirectEntry* on logstash gives an idea of the frequency of the issue, strangely apparently always on dewiki.
This creates user facing issue when it timeouts, as this method is for example triggered on page move, when a redirect is let to the former, preventing the move to complete.
Relevant method code
/** * Insert or update the redirect table entry for this page to indicate it redirects to $rt * @param Title $rt Redirect target * @param int|null $oldLatest Prior page_latest for check and set */ public function insertRedirectEntry( Title $rt, $oldLatest = null ) { $dbw = wfGetDB( DB_MASTER ); $dbw->startAtomic( __METHOD__ ); if ( !$oldLatest || $oldLatest == $this->lockAndGetLatest() ) { $dbw->replace( 'redirect', [ 'rd_from' ], [ 'rd_from' => $this->getId(), 'rd_namespace' => $rt->getNamespace(), 'rd_title' => $rt->getDBkey(), 'rd_fragment' => $rt->getFragment(), 'rd_interwiki' => $rt->getInterwiki(), ], __METHOD__ ); } $dbw->endAtomic( __METHOD__ ); }