Results 1 to 9 of 9

Hybrid View

  1. #1
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    The "Snapshot buffer size for DISTINCT item MW#1#1#1 set to 0" log line clearly states that the snapshot length is zero, hence no snapshot is kept.

    According to your implementation of getDistinctSnapshotLength, that shouldn't have happened.
    Could you try to trace your getDistinctSnapshotLength implementation and see if it is indeed invoked?

  2. #2
    Member
    Join Date
    Mar 2010
    Location
    Madurai
    Posts
    12
    Yes, you are right, the getDistinctSnapshotLength is not invoked at all...

    How should I invoke this? I thought lightstreamer will invoke this automatically.

    I am using lightstreamer Version 3.5 Update 1428.4

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    In my previous post I didn't notice that,
    but you coded getDistinctSnapshotLength in the Data Adapter (beside isSnapshotAvailable);
    you should rather code it in the Metadata Adapter;
    then, Lightstreamer will invoke it automatically.

    Are you using a custom Metadata Adapter or the ready-made LiteralBasedProvider?
    In the latter case, you don't need to move to a custom Metadata Adapter, as the setting of <param name="distinct_snapshot_length">500</param> should do the trick;
    if it hasn't worked, maybe the syntax is not correct; please ensure that the line is inside the <metadata_provider> element.

  4. #4
    Member
    Join Date
    Mar 2010
    Location
    Madurai
    Posts
    12
    Thanks a lot !!!

    When I moved the getDistinctSnapshotLength to Meta Data adapter. it worked.

 

 

Similar Threads

  1. Snapshot Processing
    By wwatts in forum Client SDKs
    Replies: 3
    Last Post: October 2nd, 2012, 10:40 AM
  2. How to configure snapshot length?
    By LS_Developer in forum General
    Replies: 3
    Last Post: March 14th, 2012, 02:46 PM
  3. Initial snapshot length
    By patilgkk in forum General
    Replies: 5
    Last Post: August 2nd, 2010, 09:04 AM
  4. Snapshot example
    By patilgkk in forum Adapter SDKs
    Replies: 3
    Last Post: June 3rd, 2010, 10:27 AM
  5. Pre-Processor Snapshot vs DataAdapter Snapshot
    By sukhdev in forum Adapter SDKs
    Replies: 3
    Last Post: August 1st, 2007, 08:44 AM

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 09:27 AM.