accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1328093 - /accumulo/trunk/test/system/auto/stress/bigRootTablet.py
Date Thu, 19 Apr 2012 19:48:17 GMT
Author: ecn
Date: Thu Apr 19 19:48:17 2012
New Revision: 1328093

URL: http://svn.apache.org/viewvc?rev=1328093&view=rev
Log:
ACCUMULO-542: merge functional test to trunk

Added:
    accumulo/trunk/test/system/auto/stress/bigRootTablet.py   (with props)

Added: accumulo/trunk/test/system/auto/stress/bigRootTablet.py
URL: http://svn.apache.org/viewvc/accumulo/trunk/test/system/auto/stress/bigRootTablet.py?rev=1328093&view=auto
==============================================================================
--- accumulo/trunk/test/system/auto/stress/bigRootTablet.py (added)
+++ accumulo/trunk/test/system/auto/stress/bigRootTablet.py Thu Apr 19 19:48:17 2012
@@ -0,0 +1,47 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import logging
+import unittest
+
+from TestUtils import TestUtilsMixin
+
+log = logging.getLogger('test.auto')
+
+class BigRootTablet(unittest.TestCase, TestUtilsMixin):
+    "ACCUMULO-542: A large root tablet will fail to load if it does't fit in the tserver
scan buffers"
+
+    order = 80
+
+    settings = TestUtilsMixin.settings.copy()
+    settings['table.scan.max.memory'] = '1024'
+    settings['tserver.compaction.major.delay'] = '60m'
+
+    def setUp(self):
+        TestUtilsMixin.setUp(self);
+    
+    def runTest(self):
+	cmd = 'table !METADATA\naddsplits 0 1 2 3 4 5 6 7 8 9 a\n'
+        for i in range(10):
+	    cmd += 'createtable %s\nflush -t !METADATA\n' % i
+        self.shell(self.masterHost(), cmd)
+	self.stop_accumulo()
+	self.start_accumulo()
+
+def suite():
+    result = unittest.TestSuite()
+    result.addTest(BigRootTablet())
+    return result

Propchange: accumulo/trunk/test/system/auto/stress/bigRootTablet.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: accumulo/trunk/test/system/auto/stress/bigRootTablet.py
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message