View Issue Details

IDProjectCategoryView StatusLast Update
0001770GNUnetDHT servicepublic2011-09-18 12:59
ReporterChristian Grothoff Assigned ToChristian Grothoff Due Date
PriorityurgentSeveritymajorReproducibilityN/A
Status closedResolutionfixed 
Summary0001770: DHT includes unique id (uid) in each message, likely for no good reason
DescriptionThe UID is then checked for replies. But why would we need to do that? A valid reply is a valid reply. A duplicate reply is a duplicate reply. It should not matter if we got the good reply in response to our own query or not.

I suspect this was added for profiling/debugging, but if so it should probably not stay for production use and be removed VERY soon.
Additional InformationAddressing this (possibly simply by removing the code) is urgent as it would change the network protocol.
TagsNo tags attached.

Relationships

related to 0001776 closedChristian Grothoff dht multipeer test fails SOMETIMES 

Activities

mrwiggles

2011-09-16 16:17

reporter   ~0004585

The unique identifier is primarily used for testing/profiling purposes, specifically logging the path of DHT requests as they travel through our test topologies. So it should probably NOT be in any production release so that it will be compatible with future versions. However, it is VERY useful for profiling/debugging so perhaps #ifdef'ing it out would be the best option in case anyone uses the sql profiling stuff in the future...

Christian Grothoff

2011-09-16 17:26

manager   ~0004586

Ok, let's #ifdef then for now.

Christian Grothoff

2011-09-16 17:29

manager   ~0004587

Yuck. You use 'struct GNUNET_DHT_RouteMessage' for both P2P and CS communication. For CS, you need the UID for cancellation, so there it cannot be removed. Yuck.

Christian Grothoff

2011-09-16 17:31

manager   ~0004588

Actually, it is not shared, your comment is just wrong.

Christian Grothoff

2011-09-16 18:25

manager   ~0004589

Added an option 'HAVE_UID_FOR_TESTING' which is (by default, now) set to GNUNET_NO to disable the UID in P2P messages (we still need it for CS-messages so that requests can be aborted).

Christian Grothoff

2011-09-16 18:26

manager   ~0004590

Fixed in SVN 16907.

Issue History

Date ModifiedUsernameFieldChange
2011-09-16 08:25Christian GrothoffNew Issue
2011-09-16 08:25Christian GrothoffStatusnew => assigned
2011-09-16 08:25Christian GrothoffAssigned To => mrwiggles
2011-09-16 16:17mrwigglesNote Added: 0004585
2011-09-16 17:26Christian GrothoffNote Added: 0004586
2011-09-16 17:29Christian GrothoffNote Added: 0004587
2011-09-16 17:31Christian GrothoffNote Added: 0004588
2011-09-16 17:51Christian GrothoffAssigned Tomrwiggles => Christian Grothoff
2011-09-16 18:25Christian GrothoffNote Added: 0004589
2011-09-16 18:26Christian GrothoffNote Added: 0004590
2011-09-16 18:26Christian GrothoffStatusassigned => resolved
2011-09-16 18:26Christian GrothoffResolutionopen => fixed
2011-09-16 18:51Christian GrothoffRelationship addedrelated to 0001776
2011-09-18 12:59Christian GrothoffStatusresolved => closed