You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate test-blobstore-healer.t from blobimport to testtool
Summary:
Fixed the populate-wal command to use the correct multiplex_id when inserting WAL entries, allowing the blobstore healer to find and process them correctly.
The healer queries WAL entries by multiplex_id from the MultiplexedWal configuration. The populate-wal command was incorrectly using target_blobstore_id (individual blobstore ID like 0) instead of the actual multiplex_id (configuration-level ID like 1), causing a mismatch.
Migrate the blobstore healer integration test from the deprecated `blobimport` tool to the modern `testtool drawdag` approach. This removes the dependency on blobimport and uses the new `populate-wal` command to simulate blobstore write failures for healer testing.
Reviewed By: clara-9
Differential Revision: D87931473
fbshipit-source-id: c63484072ebd90925f02fa296b0d085e86d4b50e
Run the heal, withwrite errors injected, simulating store still bad
44
49
$ function count_log() {
45
50
> sed -re 's/^(Adding source blobstores \[BlobstoreId\(1\), BlobstoreId\(2\)\] to the queue so that failed destination blob stores \[BlobstoreId\(0\)\] will be retried later).*/\1/'|
1 [INFO] Found 33 blobs to be healed... Doing it with weight limit 10000000000, max concurrency:100
54
+
1 [INFO] Fetched 21 distinct put operations
55
+
1 [INFO] Found 21 blobs to be healed... Doing it with weight limit 10000000000, max concurrency:100
51
56
1 [INFO] Couldn't heal blob repo0000.alias.gitsha1.7371f47a6f8bd23a8fa1a8b2a9479cdd76380e54 in these blobstores: {BlobstoreId(0)}
52
57
1 [INFO] Couldn't heal blob repo0000.alias.gitsha1.8c7e5a667f1b771847fe88c01c3de34413a1b220 in these blobstores: {BlobstoreId(0)}
53
58
1 [INFO] Couldn't heal blob repo0000.alias.gitsha1.96d80cd6c4e7158dbebd0849f4fb7ce513e5828c in these blobstores: {BlobstoreId(0)}
@@ -60,43 +65,31 @@ Run the heal, with write errors injected, simulating store still bad
60
65
1 [INFO] Couldn't heal blob repo0000.alias.sha256.559aead08264d5795d3909718cdd05abd49572e84fe55590eef31a88a08fdffd in these blobstores: {BlobstoreId(0)}
61
66
1 [INFO] Couldn't heal blob repo0000.alias.sha256.6b23c0d5f35d1b11f9b683f0b0a617355deb11277d91ae091d399c655b87940d in these blobstores: {BlobstoreId(0)}
62
67
1 [INFO] Couldn't heal blob repo0000.alias.sha256.df7e70e5021544f4834bbee64a9e3789febc4be81470df629cad6ddb03320a5c in these blobstores: {BlobstoreId(0)}
63
-
1 [INFO] Couldn't heal blob repo0000.changeset.blake2.459f16ae564c501cb408c1e5b60fc98a1e8b8e97b9409c7520658bfa1577fb66 in these blobstores: {BlobstoreId(0)}
64
-
1 [INFO] Couldn't heal blob repo0000.changeset.blake2.9feb8ddd3e8eddcfa3a4913b57df7842bedf84b8ea3b7b3fcb14c6424aa81fec in these blobstores: {BlobstoreId(0)}
65
-
1 [INFO] Couldn't heal blob repo0000.changeset.blake2.c3384961b16276f2db77df9d7c874bbe981cf0525bd6f84a502f919044f2dabd in these blobstores: {BlobstoreId(0)}
68
+
1 [INFO] Couldn't heal blob repo0000.changeset.blake2.aa53d24251ff3f54b1b2c29ae02826701b2abeb0079f1bb13b8434b54cd87675 in these blobstores: {BlobstoreId(0)}
69
+
1 [INFO] Couldn't heal blob repo0000.changeset.blake2.e32a1e342cdb1e38e88466b4c1a01ae9f410024017aa21dc0a1c5da6b3963bf2 in these blobstores: {BlobstoreId(0)}
70
+
1 [INFO] Couldn't heal blob repo0000.changeset.blake2.f8c75e41a0c4d29281df765f39de47bca1dcadfdc55ada4ccc2f6df567201658 in these blobstores: {BlobstoreId(0)}
66
71
1 [INFO] Couldn't heal blob repo0000.content.blake2.55662471e2a28db8257939b2f9a2d24e65b46a758bac12914a58f17dcde6905f in these blobstores: {BlobstoreId(0)}
67
72
1 [INFO] Couldn't heal blob repo0000.content.blake2.896ad5879a5df0403bfc93fc96507ad9c93b31b11f3d0fa05445da7918241e5d in these blobstores: {BlobstoreId(0)}
68
73
1 [INFO] Couldn't heal blob repo0000.content.blake2.eb56488e97bb4cf5eb17f05357b80108a4a71f6c3bab52dfcaec07161d105ec9 in these blobstores: {BlobstoreId(0)}
69
74
1 [INFO] Couldn't heal blob repo0000.content_metadata2.blake2.55662471e2a28db8257939b2f9a2d24e65b46a758bac12914a58f17dcde6905f in these blobstores: {BlobstoreId(0)}
70
75
1 [INFO] Couldn't heal blob repo0000.content_metadata2.blake2.896ad5879a5df0403bfc93fc96507ad9c93b31b11f3d0fa05445da7918241e5d in these blobstores: {BlobstoreId(0)}
71
76
1 [INFO] Couldn't heal blob repo0000.content_metadata2.blake2.eb56488e97bb4cf5eb17f05357b80108a4a71f6c3bab52dfcaec07161d105ec9 in these blobstores: {BlobstoreId(0)}
72
-
1 [INFO] Couldn't heal blob repo0000.filenode_lookup.61585a6b75335f6ec9540101b7147908564f2699dcad59134fdf23cb086787ad in these blobstores: {BlobstoreId(0)}
73
-
1 [INFO] Couldn't heal blob repo0000.filenode_lookup.9915e555ad3fed014aa36a4e48549c1130fddffc7660589f42af5f0520f1118e in these blobstores: {BlobstoreId(0)}
74
-
1 [INFO] Couldn't heal blob repo0000.filenode_lookup.a0377040953a1a3762b7c59cb526797c1afd7ae6fcebb4d11e3c9186a56edb4e in these blobstores: {BlobstoreId(0)}
75
-
1 [INFO] Couldn't heal blob repo0000.hgchangeset.sha1.112478962961147124edd43549aedd1a335e44bf in these blobstores: {BlobstoreId(0)}
76
-
1 [INFO] Couldn't heal blob repo0000.hgchangeset.sha1.26805aba1e600a82e93661149f2313866a221a7b in these blobstores: {BlobstoreId(0)}
77
-
1 [INFO] Couldn't heal blob repo0000.hgchangeset.sha1.426bada5c67598ca65036d57d9e4b64b0c1ce7a0 in these blobstores: {BlobstoreId(0)}
78
-
1 [INFO] Couldn't heal blob repo0000.hgfilenode.sha1.005d992c5dcf32993668f7cede29d296c494a5d9 in these blobstores: {BlobstoreId(0)}
79
-
1 [INFO] Couldn't heal blob repo0000.hgfilenode.sha1.35e7525ce3a48913275d7061dd9a867ffef1e34d in these blobstores: {BlobstoreId(0)}
80
-
1 [INFO] Couldn't heal blob repo0000.hgfilenode.sha1.a2e456504a5e61f763f1a0b36a6c247c7541b2b3 in these blobstores: {BlobstoreId(0)}
81
-
1 [INFO] Couldn't heal blob repo0000.hgmanifest.sha1.41b34f08c1356f6ad068e9ab9b43d984245111aa in these blobstores: {BlobstoreId(0)}
82
-
1 [INFO] Couldn't heal blob repo0000.hgmanifest.sha1.7c9b4fd8b49377e2fead2e9610bb8db910a98c53 in these blobstores: {BlobstoreId(0)}
83
-
1 [INFO] Couldn't heal blob repo0000.hgmanifest.sha1.eb79886383871977bccdb3000c275a279f0d4c99 in these blobstores: {BlobstoreId(0)}
0 commit comments