Just to be sure, I've just tried (after "manually corrupting" a randomly picked blob):
% ./bin/camlistored -openbrowser'='false -reindex'='true 2016/10/07 00:11:28 Starting camlistored version 2016-10-05-39a33c7; Go go1.7rc6 (linux/amd64) 2016/10/07 00:11:28 Starting to listen on http://localhost:3179 2016/10/07 00:11:28 Reindexing /index/ ... 2016/10/07 00:11:28 Wiping index storage type *leveldb.kvis ... 2016/10/07 00:11:28 Index wiped. Rebuilding... 2016/10/07 00:11:28 Reindexing at sha1-000039ce4802db1403a0e9be8863a9edbec25be7 2016/10/07 00:11:28 Error reindexing sha1-e272e1a701e9443091dbef24fee204717b3c2b19: corrupt blob; digest doesn't match 2016/10/07 00:11:28 Index rebuild complete. 2016/10/07 00:11:28 Caught panic installer handlers: Error reindexing /index/: 1 blobs failed to re-index But yeah, not the most user-friendly of interfaces. On 6 October 2016 at 23:56, Mathieu Lonjaret <[email protected]> wrote: > Hi, > > The easiest, high-level, way I can think of is to reindex your data. > The indexer reads all the blobs, so if a blob does not hash properly, > that should give you an error. Moreover, it goes through all your file > schemata, so once again if something is wrong there, it should be > detected. You may want to inspect the code in pkg/index/receive.go and > change a log.Print into a log.Fatal here and there to make things > stricter if you want. > > You could also pull out of pkg/index/receive.go whatever you think is > enough for your needs and run it on top of an enumeration of all the > blobs (look at things like camtool sync to get a feel of how such an > enumeration would be done). > > hth, > Mathieu > > > On 6 October 2016 at 23:02, Jai Sharma <[email protected]> wrote: >> Any idea on how to get started on verifying blob integrity? >> >> Thanks, >> Jai >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Camlistore" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Camlistore" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
