def test_insert_over_capacity(self): table_config = self.get_table_config() msg = '/WT_CACHE_FULL.*/' self.assertRaisesHavingMessage(wiredtiger.WiredTigerError, lambda:simple_populate(self, "table:" + self.name, table_config, 10000000), msg) # Figure out the last key we inserted. cursor = self.session.open_cursor('table:' + self.name, None) cursor.prev() last_key = int(cursor.get_key()) simple_populate_check(self, 'table:' + self.name, last_key)
def test_insert_over_capacity(self): config = self.fmt + self.table_config msg = '/WT_CACHE_FULL.*/' self.assertRaisesHavingMessage(wiredtiger.WiredTigerError, lambda:simple_populate(self, self.uri, config, 10000000), msg) # Figure out the last key we successfully inserted, and check all # previous inserts are still there. cursor = self.session.open_cursor(self.uri, None) cursor.prev() last_key = int(cursor.get_key()) simple_populate_check(self, self.uri, last_key)
def test_insert(self): table_config = self.get_table_config() simple_populate(self, "table:" + self.name, table_config, 1000) # Ensure the data is visible. simple_populate_check(self, 'table:' + self.name, 1000)
def test_insert(self): config = self.fmt + self.table_config simple_populate(self, self.uri, config, 1000) simple_populate_check(self, self.uri, 1000)