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

Fix WT_SESSION::reconfigure when logging is enabled

    • Storage Engines

      Calling WT_SESSION::reconfigure fails when the connection has logging enabled with the following error:

      [WT_VERB_DEFAULT][ERROR]: int __wti_logmgr_config(WT_SESSION_IMPL *, const char **, _Bool), 235: log manager reconfigure: enabled mismatch with existing setting: Invalid argument
      

      This can be reproduced simply by (test_reconfig05.py):

      import wttest
      
      # test_reconfig05.py
      #    Test WT_SESSION::reconfigure
      class test_reconfig05(wttest.WiredTigerTestCase):
          conn_config = 'log=(enabled)'
          create_session_config = 'key_format=S,value_format=S,'
          uri = "table:reconfig05"
      
          def test_reconfig05(self):
              self.session.create(self.uri, self.create_session_config)
              self.conn.reconfigure("cache_size=1GB")
      

            Assignee:
            peter.macko@mongodb.com Peter Macko
            Reporter:
            peter.macko@mongodb.com Peter Macko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: