Page MenuHomePhabricator

Remove modtoken and multiPrimaryMode from SqlBagOStuff and mainstash
Closed, ResolvedPublic

Description

My dumpster diving of binlogs showed that cases modtoken or multiPrimaryMode would be useful are so extremely rare that they can safely ignored (I didn't find one in half an hour of binlog). Hereby, I propose to simplify the code and our lives. First, let's set multiPrimaryMode to false in mainstash. Make sure everything is fine, then start cleaning up things.

Follow up to T383327: Re-architecture mainstash (x2) to allow easier maintenance

Effectively reverting https://gerrit.wikimedia.org/r/c/mediawiki/core/+/713925

Event Timeline

Ladsgroup triaged this task as Medium priority.Mar 24 2025, 11:27 PM
Ladsgroup moved this task from Triage to Ready on the DBA board.

Change #1134663 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[operations/mediawiki-config@master] mainstash: Disable multiPrimaryMode

https://gerrit.wikimedia.org/r/1134663

Change #1134663 merged by jenkins-bot:

[operations/mediawiki-config@master] mainstash: Disable multiPrimaryMode

https://gerrit.wikimedia.org/r/1134663

Mentioned in SAL (#wikimedia-operations) [2025-10-07T10:09:45Z] <ladsgroup@deploy2002> Started scap sync-world: Backport for [[gerrit:1134663|mainstash: Disable multiPrimaryMode (T389893)]]

Mentioned in SAL (#wikimedia-operations) [2025-10-07T10:14:17Z] <ladsgroup@deploy2002> ladsgroup: Backport for [[gerrit:1134663|mainstash: Disable multiPrimaryMode (T389893)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-10-07T10:24:36Z] <ladsgroup@deploy2002> Finished scap sync-world: Backport for [[gerrit:1134663|mainstash: Disable multiPrimaryMode (T389893)]] (duration: 14m 51s)

Deployed. I wait for a week to see if it causes any user-facing issues. If not, then I start dismantling the code in mediawiki core.

Change #1196055 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[mediawiki/core@master] SqlBagOStuff: First pass at removing modtoken and multiPrimaryMode

https://gerrit.wikimedia.org/r/1196055

Change #1196055 merged by jenkins-bot:

[mediawiki/core@master] SqlBagOStuff: First pass at removing modtoken and multiPrimaryMode

https://gerrit.wikimedia.org/r/1196055

Change #1198361 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[mediawiki/core@master] tests: Remove SqlBagOStuffMultiPrimaryIntegrationTest

https://gerrit.wikimedia.org/r/1198361

Change #1198361 merged by jenkins-bot:

[mediawiki/core@master] tests: Remove SqlBagOStuffMultiPrimaryIntegrationTest

https://gerrit.wikimedia.org/r/1198361

Change #1213424 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[mediawiki/core@master] schema: Drop modtoken from objectcache

https://gerrit.wikimedia.org/r/1213424

Change #1213424 merged by jenkins-bot:

[mediawiki/core@master] schema: Drop modtoken from objectcache

https://gerrit.wikimedia.org/r/1213424

Ladsgroup moved this task from In progress to Done on the DBA board.