Home › Forums › PeerfactSim Forum › Publish and Lookup Mechanisms
- This topic has 4 replies, 1 voice, and was last updated 9 years, 4 months ago by Chintan Parekh.
-
AuthorPosts
-
May 21, 2015 at 6:37 pm #851Chintan ParekhGuest
I was just trying to debug the nodes an I found out the following thing which surprised me:
1. Publish Mechanishm
I have used network Id’s
FileSharingApplication: 68.8.144.9 // Start of Publish
DocumentStored:12.21.188.1 // Place where document is store
ResultMessage: 66.8.240.99 // Notification where it is storedThe question over here is that why is the “resultMessage” always sent to “66.8.240.99”…No matter what? How does the original node which is “68.8.144.99” (specifically in this case informed that it is published).
The problem gets really difficult when I debug lookup mechanism
2. Lookup Mechanism
FileSharingApplication: 12.21.188.1 // Start of Publish
Finds the file : 65.8.244.90 // Place where document is stored just retrieves it
ResultMessage/Store Document: 66.8.240.99 // Retrieves it and stores itSo over here always the document is getting stored on “66.8.240.99” which apparently I think is the localhost. So the problem here is that every lookup mechanism stores the document at this node and just in case in my scenario if I have a cache then there is just 1 cache in the whole network if this is to happen.
Please let me know what exactly is happening..Hoping to hear from you..!
May 21, 2015 at 6:37 pm #852Chintan ParekhGuestHoping to hear your inputs here..as this is the main problem..I have cache developed and because of this behavior everything is stored on the local node..!..
May 21, 2015 at 6:38 pm #853Matthias FeldottoGuestI just checked everything. The used nodes look fine. Perhaps you have used a wrong field in your output, the analyzer gets more than one node as result (everytime for example also the initiator of a lookup). To check it, you can use the SimpleNetLayer, there you have integers as net ids (0, 1, 2, …), so it is easier to have an overview.
May 21, 2015 at 6:38 pm #855Chintan ParekhGuestYes, I am sure the output produced are perfectly right..!.
I request you to please put “sysout” when the lookup is started and when the document is saved..Both the locations are different..!
Awaiting your reply..!
May 21, 2015 at 6:38 pm #856Chintan ParekhGuestWell,
Thanks. SimpleNet Layer did help a lot as it just generates integer which helps a lot in debugging..!
However, figured out the problem..Apparently some how my FileSharingApplication obejct was turned to static..Don’t know how and hence the problem….Never saw that that coming..
Anyway, Sorry for the trouble and thanks for the help..!!..Perfectly fine now.:!
– zitierten Text einblenden – -
AuthorPosts
- You must be logged in to reply to this topic.