[chord] Does DHASH_NOAUTH work?

Patryk Ściborek patryk at sciborek.com
Sat Aug 25 23:00:01 EDT 2007


Hello!

I'm writing program which is a client for Dhash. It uses DHASH_NOAUTH to
store data block (which is changing) under constant key. But Dhash
behaves very strange...
Here is what I'm doing (these are separate calls of my program):
1. generate random id, initial data and insert it
2. retrieve it, check if it is correct
3. retrieve it, update, insert once again
4. retrieve it, check if it is correct (repeat step 2)

With first 3 steps I don't have any problems. Insert/Retrieve callbacks
always have dhash_stat set to DHASH_OK.
Problems begin in step 4 - Retrieve callback have dhash_stat parameter
set to DHASH_OK but dhash_block is empty (bl->data.len()==0)! I don't
have any idea why :(

When I write block first time, log.lsd says:
1188095238.246039 dhashcli: store 6376053034ffa968821c697110038ed285bdfe1 (frag 1/5) -> 15eddb15c8685c9dc745ea024ecbc33639606a98 in 2ms: DHASH_OK
1188095238.246174 dhashcli: store 6376053034ffa968821c697110038ed285bdfe1 (frag 4/5) -> 2bcc66b1c521b8c7157eb393d4c862f734f6a18e in 2ms: DHASH_OK
1188095238.246253 dhashcli: store 6376053034ffa968821c697110038ed285bdfe1 (frag 3/5) -> 24752b6a087ef3456faff165179020c4c9e9b298 in 2ms: DHASH_OK
1188095238.257444 dhashcli: store 6376053034ffa968821c697110038ed285bdfe1 (frag 5/5) -> 3c3c3c91f8d7c5601249d13c58324f2f8baf1eee in 13ms: DHASH_OK
1188095238.274908 dhashcli: store 6376053034ffa968821c697110038ed285bdfe1 (frag 2/5) -> 1a77ef8c154cbd2d919cdb9bcf30d11a1b141c11 in 31ms: DHASH_OK


And when I update block it's almost the same:
1188095267.288717 dhashcli: store 6376053034ffa968821c697110038ed285bdfe1 (frag 4/5) -> 2bcc66b1c521b8c7157eb393d4c862f734f6a18e in 1ms: DHASH_OK
1188095267.288865 dhashcli: store 6376053034ffa968821c697110038ed285bdfe1 (frag 1/5) -> 15eddb15c8685c9dc745ea024ecbc33639606a98 in 2ms: DHASH_OK
1188095267.289742 dhashcli: store 6376053034ffa968821c697110038ed285bdfe1 (frag 2/5) -> 1a77ef8c154cbd2d919cdb9bcf30d11a1b141c11 in 2ms: DHASH_OK
1188095267.289807 dhashcli: store 6376053034ffa968821c697110038ed285bdfe1 (frag 3/5) -> 24752b6a087ef3456faff165179020c4c9e9b298 in 2ms: DHASH_OK
1188095267.289982 dhashcli: store 6376053034ffa968821c697110038ed285bdfe1 (frag 5/5) -> 3c3c3c91f8d7c5601249d13c58324f2f8baf1eee in 3ms: DHASH_OK

It looks ok.

Are DHASH_NOAUTH blocks working? I found that Emil Sit wrote 2 years ago
that he doesn't know if it works but he was going to fix it
(https://pdos.csail.mit.edu/pipermail/chord/2005-May/000451.html).

I'm using chord-0.1-20070529.tar.bz2 witch sfslite-0.8.16.tar.gz.

Do you have any ideas?

Best Regards,
Patryk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2262 bytes
Desc: not available
Url : https://pdos.csail.mit.edu/pipermail/chord/attachments/20070825/57493d21/smime.bin


More information about the chord mailing list