Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Aug 2009
    Location
    Noida
    Posts
    26

    Does LS throw exception on pushing duplicate ADD command for same key?

    Hello,

    In command mode, Does smartUpdate() throw any exception in case of duplicate "ADD" command for same key? Is there a way to know for what keys we had push "ADD" command to LS? or Adapter business logic should keep maintain it's own cache to take of of duplicate "ADD" command for same key.
    Pradeep Kr Chahal
    Software Designer
    Expertise in implementing Market Interface, Push technology, Publish-Subscribe Architecture
    pkumar.chahal@gmail.com
    http://www.pradeepchahal.com

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,089
    No exceptions are thrown in case of inconsistency in the update flow issued by the Data Adapter.
    This holds for all kinds of possible inconsistencies:
    • about the values of the special "key" and "command" fields in COMMAND mode;
    • about the sequence of ADD, UPDATE and DELETE commands in COMMAND mode (which is your case);
    • about the sequence of snapshot and real time updates.

    In those cases, either the event is discarded or it is interpreted in the most likely way and forwarded. Only a log message at WARN or ERROR level on LightstreamerLogger.preprocessor is issued as a notification.

    Note that the recovery policy has slightly changed in the transition from 3.5 and 3.6 version of the Server, towards a more tolerant policy.
    However, it is still possible that unexpected events are eventually lost in the subsequent stages.
    Hence, inconsistent sequences of events are still discouraged and not officially supported.

    I confirm that there is no facility for checking the current set of keys for an item in COMMAND mode from the Data Adapter,
    therefore, the consistency check are entirely charged on the Data Adapter.

 

 

Similar Threads

  1. Exception in metadataAdapter
    By Pradeep Chahal in forum Adapter SDKs
    Replies: 1
    Last Post: April 13th, 2010, 10:18 AM
  2. Replies: 4
    Last Post: August 14th, 2009, 04:28 AM
  3. Pushing complex data structure
    By shreyaspurohit in forum Adapter SDKs
    Replies: 4
    Last Post: March 30th, 2009, 12:06 PM
  4. Replies: 5
    Last Post: February 12th, 2008, 04:00 AM
  5. Bandwidth and event pushing
    By churrusco in forum General
    Replies: 10
    Last Post: May 8th, 2007, 03:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 03:11 AM.