[OpenDHT-Users] Problem with get

Chad Yoshikawa yoshikco at ececs.uc.edu
Wed Jun 6 17:31:22 UTC 2007


I have the same problem -- e.g., there is one opendht server which would not
accept new PUTs.  So GETs on the key would return nothing (and no error).

The way I solved the problem is to issue multiple gets to K distinct
servers, and return the first non-empty value.  You could also consider
timestamping your puts (by combining the time-of-day with the put value),
and then return the latest GET value you receive.  

-Chad

Chad Yoshikawa
CS Graduate Student
yoshikco at ececs.uc.edu

> -----Original Message-----
> From: opendht-users-bounces at opendht.org [mailto:opendht-users-
> bounces at opendht.org] On Behalf Of chelmis
> Sent: Wednesday, June 06, 2007 5:08 AM
> To: opendht-users at opendht.org
> Subject: [OpenDHT-Users] Problem with get
> 
> Hello,
> 
> I have a problem with the get method and I was wondering if anyone can
> help me...
> Lets say that I put a key:"Test" with value:"This is a Test" into the
> OpenDHT.
> Every time I call get with key "Test", I thought that I would get back
> the value "This is a Test" as an answer. However there are times that I
> get nothing back.
> The problem is that I want to know whether the key "Test" is not
> inserted into the DHT at all or if there is a problem with the DHT (a
> network problem for instance).
> Is there any way to distinguish the two cases?
> 
> Thank you...
> 
> Charalambos Chelmis
> Senior Student of Computer Engineering and Informatics
> Department of Patras University, Greece
> _______________________________________________
> OpenDHT-Users mailing list
> OpenDHT-Users at opendht.org
> http://opendht.org/cgi-bin/mailman/listinfo/opendht-users



More information about the OpenDHT-Users mailing list