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

Fix workgen JSON output

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.1, 4.4.8, 5.0.2, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 3
    • Storage - Ra 2021-06-28

      Workgen generates monitor.json when JSON output is enabled. The format of this file is invalid and then cannot be visualised (Broken JSON.rtf). After fixing the issue manually (Fixed JSON.rtf) all the data is not shown correctly. Indeed, as there are fields with the same names at the same level, only the latest will appear.

      I suggest we could have the following structure instead:

      • version
      • workgen_sample_1
        • localTime
        • ...
      • workgen_sample_2
        • localTime
        • ...
      • ...

      This ticket should test the correct JSON output is generated when only one measure is captured and when N measures are captured using 
      sample_interval_ms set in the python script.

        1. Broken JSON.rtf
          2 kB
          Etienne Petrel
        2. fixed_array.json
          3 kB
          Alexey Anisimov
        3. Fixed JSON.rtf
          2 kB
          Etienne Petrel

            Assignee:
            alexey.anisimov@mongodb.com Alexey Anisimov (Inactive)
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: