mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
dcf66ebc11
Summary: Make it possible to traverse fsnodes in walker. Reviewed By: ahornby Differential Revision: D21153883 fbshipit-source-id: 047ab73466f48048a34cb52e7e0f6d04cda3143b
38 lines
1.5 KiB
Perl
38 lines
1.5 KiB
Perl
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This software may be used and distributed according to the terms of the
|
|
# GNU General Public License found in the LICENSE file in the root
|
|
# directory of this source tree.
|
|
|
|
$ . "${TEST_FIXTURES}/library.sh"
|
|
|
|
setup configuration
|
|
$ MULTIPLEXED=2 default_setup_blobimport "blob_files"
|
|
hg repo
|
|
o C [draft;rev=2;26805aba1e60]
|
|
|
|
|
o B [draft;rev=1;112478962961]
|
|
|
|
|
o A [draft;rev=0;426bada5c675]
|
|
$
|
|
blobimporting
|
|
|
|
Erase the sqllites and blobstore_sync_queue
|
|
$ rm -rf "$TESTTMP/monsql/sqlite_dbs" "$TESTTMP/blobstore_sync_queue/sqlite_dbs" "$TESTTMP/blobstore"
|
|
|
|
blobimport them into Mononoke storage again, but with write failures on one side
|
|
$ blobimport repo-hg/.hg repo --blobstore-write-chaos-rate=1
|
|
|
|
Check that healer queue has successful items
|
|
$ sqlite3 "$TESTTMP/blobstore_sync_queue/sqlite_dbs" "select count(*) FROM blobstore_sync_queue";
|
|
60
|
|
|
|
Check that scrub doesnt report issues despite one store being missing, as the entries needed are on the queue and less than N minutes old
|
|
$ mononoke_walker --storage-id=blobstore --readonly-storage --cachelib-only-blobstore scrub --scrub-blobstore-action=ReportOnly -I deep -q --bookmark master_bookmark --scuba-log-file scuba-reportonly.json 2>&1 | strip_glog | sed -re 's/^(scrub: blobstore_id BlobstoreId.0. not repaired for repo0000.).*/\1/' | uniq -c | sed 's/^ *//'
|
|
1 Walking roots * (glob)
|
|
1 Walking edge types * (glob)
|
|
1 Walking node types * (glob)
|
|
1 Final count: (40, 40)
|
|
1 Bytes/s,* (glob)
|
|
1 Walked* (glob)
|