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

Fix workgen JSON output

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.1, 5.1.0, 4.4.8, 5.0.2
    • Component/s: None
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      Storage - Ra 2021-06-28

      Description

      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.

        Attachments

        1. Broken JSON.rtf
          2 kB
        2. fixed_array.json
          3 kB
        3. Fixed JSON.rtf
          2 kB

          Activity

            People

            Assignee:
            alexey.anisimov Alexey Anisimov
            Reporter:
            etienne.petrel Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: