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

Retrieve the operation rate of each component in their constructor

    XMLWordPrintable

Details

    • Technical Debt
    • Status: Open
    • Trivial - P5
    • Resolution: Unresolved
    • None
    • None
    • None
    • 2
    • StorEng - Defined Pipeline

    Description

      Summary
      Currently, we retrieve the operation rate of a component in the load function. The load function is dedicated to doing any preliminary work specific to the component before the test starts. Instead, we could do this kind of configuration parsing in the constructor.

      Motivation

      • Is this issue urgent?
        No

      Acceptance Criteria (Definition of Done)
      The operation rate of each component is retrieved in the constructor unless another better idea is found.

      diff --git a/test/cppsuite/src/component/component.cpp b/test/cppsuite/src/component/component.cpp
      index 118727d16..7d2133cd1 100644
      --- a/test/cppsuite/src/component/component.cpp
      +++ b/test/cppsuite/src/component/component.cpp
      @@ -36,6 +36,7 @@
       namespace test_harness {
       component::component(const std::string &name, configuration *config) : _config(config), _name(name)
       {
      +    _sleep_time_ms = _config->get_throttle_ms();
       }
       
       component::~component()
      @@ -53,8 +54,6 @@ component::load()
       
           if (!_enabled)
               return;
      -
      -    _sleep_time_ms = _config->get_throttle_ms();
       }
      

       

      Attachments

        Activity

          People

            backlog-server-storage-engines Backlog - Storage Engines Team
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: