Page MenuHomePhabricator

Add a `bin/hunks` script to manage migrations of hunk data
ClosedPublic

Authored by epriestley on May 25 2014, 5:02 PM.
Tags
None
Referenced Files
F17989796: D9291.id22058.diff
Sat, Aug 2, 12:15 AM
F17946778: D9291.id.diff
Thu, Jul 31, 3:07 PM
F17946601: D9291.id22330.diff
Thu, Jul 31, 2:43 PM
F17922361: D9291.diff
Wed, Jul 30, 6:41 AM
F17837325: D9291.id22330.diff
Sat, Jul 26, 5:12 PM
F17808600: D9291.id22058.diff
Fri, Jul 25, 4:06 PM
Unknown Object (File)
Jun 29 2025, 3:04 PM
Unknown Object (File)
Jun 29 2025, 1:57 PM
Subscribers

Details

Summary

Ref T4045. Ref T5179. While we'll eventually need to force a migration, we can let installs (particularly large installs) do an online migration for now. This moves hunks to the new storage format one at a time.

(Note that nothing writes to the new store yet, so this is the only way to populate it.)

WARNING: Installs, don't run this yet! It won't compress the data. Wait until it can also do compression.
Test Plan

Added a break; after migrating one row and moved a few rows over. Spot checked them in the database and viewed the affected diffs.

Diff Detail

Repository
rP Phabricator
Branch
hunk6
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 701
Build 701: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

epriestley retitled this revision from to Add a `bin/hunks` script to manage migrations of hunk data.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
btrahan added inline comments.
src/applications/differential/management/PhabricatorHunksManagementMigrateWorkflow.php
10

if the NOTE to installs is really important / the code isn't in this stack of diffs somewhere, i'd put the note here

This revision is now accepted and ready to land.Jun 3 2014, 10:11 PM

D9292 is the one that adds the compression bit.

epriestley updated this revision to Diff 22330.

Closed by commit rP5b1262c98b8f (authored by @epriestley).