diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2015-03-03 05:20:33 +0000 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2015-03-03 05:20:33 +0000 |
commit | 68c09bdcf9cf99c718f23594796be2b39f7e6640 (patch) | |
tree | 3af68ac924b6b6f9e9f179e779c5579cc6d2f715 /test/suite/test_shared_cache02.py | |
parent | 17bbca685cc555c7cc64bb74658f926ae8b0c686 (diff) | |
download | mongo-68c09bdcf9cf99c718f23594796be2b39f7e6640.tar.gz |
Add more content to shared cache test case.
Diffstat (limited to 'test/suite/test_shared_cache02.py')
-rw-r--r-- | test/suite/test_shared_cache02.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/suite/test_shared_cache02.py b/test/suite/test_shared_cache02.py index c64631e897a..3806e9d0cda 100644 --- a/test/suite/test_shared_cache02.py +++ b/test/suite/test_shared_cache02.py @@ -145,5 +145,25 @@ class test_shared_cache02(wttest.WiredTigerTestCase): self.closeConnections() + # Test reconfigure that switches to using a shared cache + # previous reserve size isn't taken into account + def test_shared_cache_reconfig03(self): + nops = 1000 + self.openConnections(['WT_TEST1', 'WT_TEST2'], pool_opts = ',') + + for sess in self.sessions: + sess.create(self.uri, "key_format=S,value_format=S") + self.add_records(sess, 0, nops) + + self.conns[0].reconfigure("shared_cache=(name=pool,reserve=20M)"), + self.conns[1].reconfigure("shared_cache=(name=pool,reserve=20M)"), + + # TODO: Ensure that the reserve size was updated. + # cursor = self.sessions[0].open_cursor('config:', None, None) + # value = cursor['connection'] + # self.assertTrue(value.find('reserve') != -1) + + self.closeConnections() + if __name__ == '__main__': wttest.run() |