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

Retrieve the operation rate of each component in their constructor

    • Type: Icon: Technical Debt Technical Debt
    • Resolution: Duplicate
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: None
    • 2
    • StorEng - Defined Pipeline

      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();
       }
      

       

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

              Created:
              Updated:
              Resolved: