Project

General

Profile

Actions

Bug #5122

closed

In partial-sync consumer gets only those updates that are published after it came online or have just subscribed.

Added by Saurab Dulal over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

If not for some specific design or security issues, the consumer should get all the updates that were published before its subscription.


Files

Actions #2

Updated by Ashlesh Gawande over 4 years ago

  • Tracker changed from Task to Bug
  • Assignee set to Ashlesh Gawande
  • Target version set to v0.3.0
  • Start date deleted (07/03/2020)

How Consumer::HelloData works:

 for /prefix/seq in in helloData:
    if subscribed to prefix and behind on sequence number:
        add to updates
    add /prefix/seq to available subscriptions

 tell application about available subscriptions [onHelloData callback]
 tell application about updates [onSyncData callback]

This is so that app when app renews hello interest, Consumer can tell the app only if it has missed some updates while sleeping.
But what is happening here is that Consumer receives the /prefix/seq as part of first hello data and then the app subscribes to it. So consumer has received hello data with the most up to date sequence number correctly. But there is no callback to the app because it was not subscribed to it.
And when the app does call addSubscription, the Consumer class inserts the prefix with a sequence number of zero and not the original sequence number that was received in HelloData. Seems like we would have to modify onHelloData callback to add the sequence number so that app knows about this latest sequence number and can give it to addSubscription.

Actions #3

Updated by Ashlesh Gawande over 4 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 90
Actions #4

Updated by Ashlesh Gawande over 4 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 90 to 100

HelloData cb is changed to return a prefix->seqNo map instead of list of prefixes.

Actions #5

Updated by Ashlesh Gawande over 4 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF