ZettaScale Knowledge Base ZettaScale Knowledge Base

  • Home
  • DDS Products
    • DDS Overview and Concepts
    • OpenSplice DDS
      • OpenSplice DDS
        • OpenSplice FAQ
        • Why OpenSplice DDS?
        • Installation
          • OpenSplice Licensing FAQ
        • Best Practice and Possible Errors
        • API and IDL
        • Configuration
        • Networking
          • DDSI
          • RT Networking
        • Durability Service
        • DDS Security
        • Logging
        • Databases and DBMS
        • Release Notes
      • OpenSplice Tools
        • Overview
        • OpenSplice Launcher
        • OpenSplice Tuner
        • OpenSplice Tester
        • Record and Replay Manager
        • MMStat
    • Cyclone DDS
  • Zenoh
  • Contact Support
Home / DDS, OpenSplice DDS, Best Practice and Possible Errors / Can you tell the difference between historical samples and new samples?

Can you tell the difference between historical samples and new samples?

After calling wait_for_historical_data writers may still be producing new data during that the time in takes to complete. Can you tell the difference between historical samples and new samples (where the latter might be defined as “written since I called wait_for_historical_data”)?

Answer

There is no such ‘break’ between the samples received so you may have to revert to the source_timestamp of the received samples.

It’s still not that easy as historical samples might be produced by different writers that use clocks that may not be sufficiently aligned.

Note however that (after wait_for_historical_data() is complete), the datareader’s history (of each instance) will be ordered, something that should prevent checking each/every sample.

Our advice would be not to rely on such a distinction and if time-validity is an issue, model that validity explicitly in the data model.

Related

DDSOpenSplice DDSBest Practice and Possible Errors
twitter logo linkedin logo
News and Events
Copyright © 2022 ZettaScale Technology Ltd. All Rights Reserved