-
January 25th, 2016, 01:50 PM
#1
problem in command subscribe
hello,
today i noticed that when a form getting data from a command subscribe from LS, it get some rows (add command) then all rows is deleted one by one (delete command). but when i close the form and open it again that do resubscribe, it get the last one row from LS.
what may cause the problem and is the LS may cache any data even it is received as deleted command from client?
-
January 26th, 2016, 09:46 AM
#2
Hi engcoder,
I confirm that the behavior experienced is not the one expected.
If the client subscribe an Item in COMMAND mode, the snapshot is the shortest sequence of commands needed to build the current state of the table from scratch. So, in case of an empty table the client should not receive anything.
In order to check what really happen, please could you replicate the case in a test environment after changing these log settings (in lightstreamer_log_conf.xml)?
Regards,
Giuseppe
-
January 26th, 2016, 02:29 PM
#3
this is the lightstreamer log file of today after i changed the log confg. as you showed
http://www.mediafire.com/download/q1...+26-1-2016.rar
-
January 27th, 2016, 10:00 AM
#4
Hi engcoder,
I noticed that the log does not contain an isolated case, but multiple sessions with different subscriptions in COMMAND mode. I tried to verify some of these but I have not found the pattern complained.
Please could you point me inside the log precisely to the issue? For example, specifying a specific time or a session id and an Item involved in the issue.
Thank you,
Giuseppe
-
January 27th, 2016, 10:41 AM
#5
hi,
i am not understand what is the isolated case and its benefit?
i don't remember the time of the problem but i guess it is not related to a time but it related to event that i noticed that when a form getting data from a command subscribe from LS, it get some rows (add command) then all rows is deleted one by one (delete command). but when i close the form and open it again that do resubscribe, it get the last one row from LS.
-
January 27th, 2016, 11:39 AM
#6
Hi engcoder,
By "isolated case" I mean:
- start a Lightstreamer server (for example a test or development server that are already in use) with the log settings suggested;
- connect with only a single client;
- repeating the minimum activities client-side to reproduce the issue;
- shut down the server.
In this way, the resulting log will be more compact and easier to read, helping us to identify the problem.
In any case, I have noticed that subscriptions for type COMMAND involving Items such these: pa11, pb11, pa2, ...
Could you tell us which of these should we examine?
Thank you,
Giuseppe
-
January 27th, 2016, 12:15 PM
#7
hello,
i already do the isolatiotion for only one client outside the server and repeat activities.
you examine the subscribtions of items have the prefix pa and pb.
-
January 27th, 2016, 06:27 PM
#8
Hi engcoder,
I am sorry but I was not able to recognize the issue in the log.
However, I can report that I have often found messages like these:
26-Jan-16 16:02:55,272|DEBUG|LightstreamerLogger.subscriptio ns|ol.DataPool Notify Receiver|INCOMING DATA for pb11 on DataPool.DataPool --> ...
26-Jan-16 16:02:55,272|WARN |LightstreamerLogger.preprocessor |ol.DataPool Notify Receiver|Unexpected UPDATE event for key 33-p1-8. Event propagated as an ADD command.
This mean that when Lightstreamer server asks for the snapshot receives from your Adapter some UPDATE events. While, as snapshot events, only ADDs are expected.
Could be that the adapter send some of this UPDATEs incorrectly?
Regards,
Giuseppe
Similar Threads
-
By hungtt in forum Adapter SDKs
Replies: 2
Last Post: December 24th, 2010, 08:51 AM
-
By antiGuru in forum Adapter SDKs
Replies: 1
Last Post: February 5th, 2010, 10:55 AM
-
By rd2008 in forum General
Replies: 9
Last Post: October 10th, 2008, 11:38 AM
-
By nagakumaran in forum Adapter SDKs
Replies: 6
Last Post: October 16th, 2007, 03:11 PM
-
By CitiMan in forum Adapter SDKs
Replies: 8
Last Post: November 30th, 2006, 05:26 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 11:00 AM.
Bookmarks