Project

General

Profile

Actions

Task #4606

closed

TestChronoSync: All users not receiving chat messages

Added by Anonymous over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
05/03/2018
Due date:
% Done:

0%

Estimated time:

Description

From Price Clarke:

I started testing Chronosync by getting started with the TestChronoSync demo code and kept running into with duplicates and lost messages in a "perfect" network environment. So, using a slightly modified version of TestChronoSync.java (had to pull out some of the internal classes, etc. but left the actual code/callbacks etc. the same... except for a few key areas, e.g. I had to change the System.out.println() responsible for printing new chat messages into a function call). https://github.com/gpwclark/chronosync-chat-simulation - I made a program that wraps around the 'Chat' class and simulates concurrent chat users sending a predetermined list of chat messages. In the README.md there are directions on how you can vary the number of participants, and messages. In addition, I made a mock chat class to demonstrate correctness/a control scenario. My apriori reasoning is:

  1. Chronosync does not properly inform every chatter about every other bit of data generated by every other user in the form of a named interest they can use to fetch the data.
  2. Every chat user expresses interest in every bit of data every other user has generated but the data is not delivered because it either.
  • failed in the onInterest CB of the producer or
  • failed to be delivered by NFD or
  • failed in the onData CB of the consumer.

Or it is a unique combination of the two problems and the subproblems involving data delivery. My fear is that there is an issue is with 1, as the actual TestChronoSync code is very straightforward, so I'm currently working to test that. If you have any insights or you think/know I'm wrong I'm all ears!

Actions

Also available in: Atom PDF