Skip to content
quarry Artifact [628e48c253]
Login

Artifact [628e48c253]

Artifact 628e48c25309029402d7859bf894bc96832978b4475a027e56050a834017f2b1:

Ticket change [628e48c253] - Fixed ticket [0e488373ec]: Schema changes must migrate online, not wipe every index plus 3 other changes by dmestas on 2026-08-19 12:44:01.
D 2026-08-19T12:44:01.531
J icomment Fixed\sthe\ssubstance;\sone\srefinement\sdeliberately\sremains.\n\n**1.\sAdditive\sis\scodified\sas\sthe\sdefault.**\sThe\smigration\slist\sis\snow\sa\nnamed\s`migrations`\svar\swhose\scomment\sstates\sthe\spolicy,\sand\n`schemaVersion`'s\sdoc\spoints\sat\sit\sfirst:\san\sALTER\sships\sonline\swith\nthe\sforge\sserving\sthroughout;\sbump\sthe\sversion\sONLY\swhen\sthe\schange\ncannot\sbe\sexpressed\sadditively.\n\n**2.\sReset\snow\sactually\sresets\sthe\sshape.**\sIt\sdrops\severy\sderived\ntable\s(fts\sand\sits\sshadows,\sattachment\s—\swhich\sthe\srow-delete\slist\shad\nsilently\smissed\s—\sincluded)\sand\sreapplies\sthe\sschema\sthrough\sthe\ssame\n`applySchema`\sthat\sOpen\suses,\sso\s"the\sshape"\shas\sexactly\sone\ndefinition,\sthen\sstamps\sthe\sversion.\s`TestResetRepairsShape`\srecreates\nthe\sincident\s(a\scolumn\sthe\sfile's\sshape\slacks)\sand\sproves\sReset\s→\nrefold\slands,\ssearch\scorpus\sincluded.\sThe\sversion\smechanism\sno\slonger\npromises\sa\srepair\sit\scannot\sperform.\n\n**3.\sRepair\sno\slonger\scosts\san\soutage.**\s`repo.reindex`\s(POST\n/api/v1/r/{repo}/reindex,\sAdmin)\sruns\sthe\swipe-and-replay\sin\sprocess\nwhile\sthe\sforge\sserves.\sIt\sgoes\sthrough\sthe\singest\slane,\sso\sa\nfleet-wide\srepair\sis\sstaged\sat\s--ingest-limit\sstores\sat\sa\stime\srather\nthan\sa\sstampede;\sthe\sindexing\sflag\sshows\son\s/fleet\swhile\sit\sruns;\sthe\ngeneration\sbump\sdrops\sthe\smemos\shanging\soff\sthe\sold\sshape.\sA\snil\npipeline\srefuses\scleanly.\sThe\soffline\sCLI\sremains\sfor\sa\sstopped\sserver.\n\n**4.\sStaging**\salready\sexisted\s—\s--ingest-limit\s(default\s3)\sbounds\nconcurrent\srebuilds\s—\sand\sis\snow\sload-bearing\sfor\sthe\sop\sabove.\n\n**Remaining,\sout\sof\sscope:**\sa\szero-degraded-window\srebuild.\sDuring\san\nin-process\sreindex\sthe\srepo's\ssurfaces\sserve\spartial\sdata\s(flagged\sas\nindexing)\suntil\sthe\sreplay\slands.\sThe\sclean\sfix\sis\srunning\sthe\swhole\nReset+replay\sin\sone\sWAL\stransaction\sso\sreaders\skeep\sthe\sold\ssnapshot\nuntil\scommit\s—\splumbing\sa\ssingle\stx\sthrough\sthe\sfold\sbatches.\sWorth\ndoing\swhen\sa\srebuild\swindow\son\sa\sbig\sstore\sactually\shurts\ssomeone.
J mimetype text/x-markdown
J resolution Fixed
J status Fixed
K 0e488373ecc21aca805e5737517dee9994a2a8cb
U dmestas
Z b51b4a5677e4e5416d918d9a77486685