-
March 11th, 2010, 01:38 PM
#1
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.
-
March 11th, 2010, 03:53 PM
#2
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
-
By Pradeep Chahal in forum Adapter SDKs
Replies: 1
Last Post: April 13th, 2010, 09:18 AM
-
By chuan_ckc in forum General
Replies: 4
Last Post: August 14th, 2009, 03:28 AM
-
By shreyaspurohit in forum Adapter SDKs
Replies: 4
Last Post: March 30th, 2009, 11:06 AM
-
By tuongkha in forum Adapter SDKs
Replies: 5
Last Post: February 12th, 2008, 03:00 AM
-
By churrusco in forum General
Replies: 10
Last Post: May 8th, 2007, 02:04 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 04:30 PM.
Bookmarks