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

Generate stats for python tests by default

    • 5
    • Storage Engines - 2022-10-31, Storage Engines - 2022-11-14, Storage Engines - 2022-11-28, Storage Engines - 2022-12-12, Storage Engines - 2023-01-10, StorEng - 2023-01-24

      The test (truncate_15.py) in WT-9673 is hard to reproduce locally and it would have been useful if we had the FTDC data to visualize the statistics in t2 for investigating and finding the root cause of this issue. 

      I think we should enable the generation of stats for all the python tests unless there is a reason not to.

      The solution could be something similar to the diff below:

      --- a/test/suite/wttest.py
      +++ b/test/suite/wttest.py
      @@ -415,9 +415,10 @@ class WiredTigerTestCase(unittest.TestCase):
           # or self.conn_extensions
           def setUpConnectionOpen(self, home):
               self.home = home
      -        config = self.conn_config
      +        stat_config = 'statistics=(all),statistics_log=(wait=1,json=true,on_close=true)'
      +        config = stat_config + self.conn_config
               if hasattr(config, '__call__'):
      -            config = self.conn_config()
      +            config = stat_config + self.conn_config()
               config += self.extensionsConfig()
               # In case the open starts additional threads, flush first to
               # avoid confusion.

            Assignee:
            sean.watt@mongodb.com Sean Watt
            Reporter:
            siddhartha.mahajan@mongodb.com Sid Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: