diff options
author | Keith Bostic <keith.bostic@mongodb.com> | 2016-11-08 07:23:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-08 07:23:43 -0500 |
commit | c2db2b0b43973b0c8e31bbce18081605aaf6cea3 (patch) | |
tree | 5dcd5efeef48c33ad2fd035e4174868ae625e5a4 /test | |
parent | f8afbce1f26f5a6683594641279ad0c065145825 (diff) | |
download | mongo-c2db2b0b43973b0c8e31bbce18081605aaf6cea3.tar.gz |
WT-3002 Allow applications to exempt threads from eviction. (#3116)
* WT-3002 Allow applications to exempt threads from eviction.
* Update wiredtiger.in.
* Rename config key, make WT_SESSION::reconfigure only apply to passed-in values.
Add a basic smoke test of WT_SESSION::reconfigure.
* whitespace
* Update.
Diffstat (limited to 'test')
-rw-r--r-- | test/suite/test_reconfig04.py | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/test/suite/test_reconfig04.py b/test/suite/test_reconfig04.py new file mode 100644 index 00000000000..be5e6d3729e --- /dev/null +++ b/test/suite/test_reconfig04.py @@ -0,0 +1,47 @@ +#!/usr/bin/env python +# +# Public Domain 2014-2016 MongoDB, Inc. +# Public Domain 2008-2014 WiredTiger, Inc. +# +# This is free and unencumbered software released into the public domain. +# +# Anyone is free to copy, modify, publish, use, compile, sell, or +# distribute this software, either in source code form or as a compiled +# binary, for any purpose, commercial or non-commercial, and by any +# means. +# +# In jurisdictions that recognize copyright laws, the author or authors +# of this software dedicate any and all copyright interest in the +# software to the public domain. We make this dedication for the benefit +# of the public at large and to the detriment of our heirs and +# successors. We intend this dedication to be an overt act of +# relinquishment in perpetuity of all present and future rights to this +# software under copyright law. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. + +import fnmatch, os, time +import wiredtiger, wttest +from wtdataset import SimpleDataSet + +# test_reconfig04.py +# Test WT_SESSION::reconfigure +class test_reconfig04(wttest.WiredTigerTestCase): + def test_session_reconfigure(self): + self.session.reconfigure('ignore_cache_size=false') + + self.session.reconfigure('isolation=snapshot') + self.session.reconfigure('isolation=read-committed') + self.session.reconfigure('isolation=read-uncommitted') + + self.session.reconfigure('ignore_cache_size=true') + self.session.reconfigure('isolation=snapshot') + +if __name__ == '__main__': + wttest.run() |