[chord] Overloaded by doRPC call back
Hai Dao Le
daolehai at nm.gist.ac.kr
Sun Dec 17 06:57:46 EST 2006
Hi,
In my experiment, I add the following codes to make an RTT measurement
to other nodes before they are added to my location table.
void
vnode_impl::loc_insert (ptr<location> loc)
{
u_int64_t sent = getusec ();
ptr<chordID> ga = New refcounted<chordID> (loc->id());
chord_nodelistextres *lst = New chord_nodelistextres ();
doRPC(loc, chord_program_1, CHORDPROC_GETSUCC_EXT, ga, lst,
wrap(this, &vnode_impl::loc_insert_cb, sent, loc));
}
void
vnode_impl::loc_insert_cb(u_int64_t sent, ptr<location> loc, clnt_stat
err)
{
if (err) {
warnx << "PING: RPC failure " << loc->address() << " " << err <<
"\n";
} else {
u_int64_t now = getusec ();
if (now >= sent) {
u_int64_t lat = now - sent;
loc->set_distance(lat);
locations->insert (loc);
}
}
}
When running, my machine is overloaded by a huge number of error reports
like a loop (different destination each time)
PING: RPC failure 12.46.129.21:3333 RPC: Timed out
1166346453:051260 RPC failure: RPC: Timed out destined for
7510425f84dc35e9a8fe12f7e31c50f28a8338b7 at 12.46.129.21 seqno 95446 out
172061700
PING: RPC failure 12.46.129.21:3333 RPC: Timed out
1166346453:051650 RPC failure: RPC: Timed out destined for
7510425f84dc35e9a8fe12f7e31c50f28a8338b7 at 12.46.129.21 seqno 95447 out
171214084
PING: RPC failure 12.46.129.21:3333 RPC: Timed out
1166346453:052059 RPC failure: RPC: Timed out destined for
7510425f84dc35e9a8fe12f7e31c50f28a8338b7 at 12.46.129.21 seqno 95448 out
170422532
PING: RPC failure 12.46.129.21:3333 RPC: Timed out
1166346453:052451 RPC failure: RPC: Timed out destined for
7510425f84dc35e9a8fe12f7e31c50f28a8338b7 at 12.46.129.21 seqno 95449 out
172283652
PING: RPC failure 12.46.129.21:3333 RPC: Timed out
What's wrong in my codes? Please give me your suggestions.
Thanks so much in advance,
Hai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://amsterdam.lcs.mit.edu/pipermail/chord/attachments/20061217/07ffdda7/attachment.htm
More information about the chord
mailing list