gcc2ge / openkad

Automatically exported from code.google.com/p/openkad
0 stars 0 forks source link

RejectedExecutionException every other time on KadServer.java line 194 #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the DHT openKad implementation
2. Query DHT (frequently)

What is the expected output? What do you see instead?
I get an every now and then (very frequently actually) at

m.handle(msg); line 194 @ KadServer.java

What version of the product are you using? On what operating system?
Windows 7 and 8, Java 1.7

Original issue reported on code.google.com by flymaste...@gmail.com on 15 Jul 2014 at 2:46

GoogleCodeExporter commented 9 years ago
I get a RejectedExecutionException every now and then (very frequently 
actually) at

m.handle(msg); line 194 @ KadServer.java

Original comment by flymaste...@gmail.com on 15 Jul 2014 at 2:48

GoogleCodeExporter commented 9 years ago
Hi, 
it means that for some reason your node receives more messages than it can 
handle. 
The inside implementation is a fixed sized queue. It shouldn't happen and is 
usually a bug. 

Since open kad is not a DHT, I have to ask how did you implement it?  (or do 
you mean find nodes ? ) 

Original comment by Gilga1983 on 21 Jul 2014 at 11:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I use the DHT implementation featured on the project page 
(https://code.google.com/p/dht/). The DHT nodes are part of a simulation which 
runs on a single machine. Every node uses a different port. Could it be that 
the low/zero communication latency lead to my RejectedExecutionException 
problem? 

Original comment by flymaste...@gmail.com on 21 Jul 2014 at 11:37

GoogleCodeExporter commented 9 years ago
I will have a look at the code of DHT. 
I haven't worked with that module before but that exception usually happened to 
me when messages where sent to many times. It can easily be caused by 
subscribing two identical handles to the message. (so the replay is doubled and 
so on). 
\

Original comment by Gilga1983 on 21 Jul 2014 at 2:43