Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-12193

Make assertions in test_prefetch02.py stricter

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Block Cache
    • StorEng - Defined Pipeline

      The statistic comparisons in the check_prefetching_activity function of test_prefetch02.py that check for the occurrence of pre-fetching activity use the assertGreaterEqual rather than the assertGreater check. This makes sense in some scenarios where we can't guarantee that the statistics will strictly increase over time. For example, the number of pages on the prefetch queue may not increase in scenarios where the prefetch queue is already full. However, a problem could be that if we use the assertGreater check for all statistics, we may go for long periods of time where none of the statistics are being incremented and we don't realise this.

      Explore the possibility of making some checks stricter.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            monica.ng@mongodb.com Monica Ng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: