Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Mar 2012
    Location
    Frankfurt am Main
    Posts
    7

    Unexpected update for item - why is it necessary to log it as WARN?

    Hi,
    judging by Mone's post which I found here:
    http://http://www.lightstreamer.com/vb/showthread.php?t=323
    the message
    Code:
    < WARN> Unexpected update for item xyz
    is displayed when Lightstreamer is provided with an update for an item which has not been subscribed to.
    Given the fact, that "subscribtion" in this case means "presence of a client", I assume that this warning will be generated each time there is no actual client trying to get that particular xyz item. Now, two quick questions:
    1. do I understand this subscription mechanism correctly?
    2. if the answer to question 1. is "yes" then why would a lack of clients be reported as a WARN? After all, it's possible that no one is currently visiting my site (I use HTML clients along with java adapters), which is perefctly ok. Why would I need to be warned about that?
    Thanks

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    When no more clients are still subscribing for an item Lightstreamer server send a unsubscribe call for that item to the appropriate Data Adapter; since then no updates for that item will be expected.

    In fact, the Data Adapter should not interact with the server as if it were a bus, sending data as a continuous flow, but must interact with the server in response to subscribe and unsubscribe requests.
    When a Data Adapter receives a subscribe request it starts to send possibly snapshots and then all the updates, when it receives an unsubscribe request it must stops sending updates, and be ready to repeat the cycle when a new subscribe request arrives.

 

 

Similar Threads

  1. Replies: 2
    Last Post: December 24th, 2010, 08:51 AM
  2. Replies: 7
    Last Post: June 7th, 2010, 10:38 AM
  3. Strange Error on item update
    By mnenchev in forum Client SDKs
    Replies: 10
    Last Post: March 19th, 2010, 09:57 AM
  4. < WARN> Unexpected null event ???
    By mohamida in forum Adapter SDKs
    Replies: 2
    Last Post: December 10th, 2009, 07:57 AM
  5. WARN: Updated discarded for item ?
    By craigtype3 in forum Adapter SDKs
    Replies: 4
    Last Post: August 7th, 2009, 06:47 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 01:05 PM.