What is the difference between _create_ts and update_ts fields in a QMF message?
Environment
- MRG Messaging 2.0 and newer
Issue
What is the difference between _create_ts and _update_ts fields in a QMF message?
Resolution
_create_ts is a timestamp in nanoseconds when the QMF object was created.
_update_ts is a timestamp in nanoseconds when the QMF object was updated the latest time. When the object is created, it has _update_ts slightly newer than _create_ts. Oonce some statistics (like number of enqueues of a queue, or number of delivered messages to a subscription, or number of discarded messages of the broker) are updated, next periodic processing (running every --mgmt-pub-interval seconds) updates the QMF object _update_ts as well.
Note that having e.g. a queue without a enqueue or dequeue for some time, its _update_ts isn't changed.
Note also, that the _update_ts timestamp is updated only during periodic processing. I.e. enqueueing a message to a queue at 12:00:02 while periodic processing run at 12:00:00 and 12:00:10, the _update_ts for the queue will be set to 12:00:10 (plus some nanoseconds offset), regardless the real change happened earlier.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
