def __init__(self, *args, **kwargs):
     kwargs['cluster_options'] = {'start_rpc': 'true'}
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         r'Can\'t send migration request: node.*is down',
     ]
     Tester.__init__(self, *args, **kwargs)
Exemplo n.º 2
0
    def __init__(self, *args, **kwargs):
        Tester.__init__(self, *args, **kwargs)

        # Generate 1000 rows in memory so we can re-use the same ones over again:
        self.groups = ['group1', 'group2', 'group3', 'group4']
        self.rows = [(str(uuid.uuid1()), x, random.choice(self.groups))
                     for x in range(1000)]
 def __init__(self, *args, **kwargs):
     if CASSANDRA_VERSION_FROM_BUILD >= '3.0':
         kwargs['cluster_options'] = {'enable_user_defined_functions': 'true',
                                      'enable_scripted_user_defined_functions': 'true'}
     else:
         kwargs['cluster_options'] = {'enable_user_defined_functions': 'true'}
     Tester.__init__(self, *args, **kwargs)
Exemplo n.º 4
0
 def __init__(self, *args, **kwargs):
     if CASSANDRA_VERSION_FROM_BUILD >= '3.0':
         kwargs['cluster_options'] = {'enable_user_defined_functions': 'true',
                                      'enable_scripted_user_defined_functions': 'true'}
     else:
         kwargs['cluster_options'] = {'enable_user_defined_functions': 'true'}
     Tester.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     kwargs['cluster_options'] = {'start_rpc': 'true'}
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         r'Can\'t send migration request: node.*is down',
     ]
     Tester.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     CASSANDRA_DIR = os.environ.get('CASSANDRA_DIR')
     if get_version_from_build(CASSANDRA_DIR) >= '3.0':
         kwargs['cluster_options'] = {'enable_user_defined_functions': 'true',
                                      'enable_scripted_user_defined_functions': 'true'}
     else:
         kwargs['cluster_options'] = {'enable_user_defined_functions': 'true'}
     Tester.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     CASSANDRA_DIR = os.environ.get('CASSANDRA_DIR')
     if get_version_from_build(CASSANDRA_DIR) >= '3.0':
         kwargs['cluster_options'] = {'enable_user_defined_functions': 'true',
                                      'enable_scripted_user_defined_functions': 'true'}
     else:
         kwargs['cluster_options'] = {'enable_user_defined_functions': 'true'}
     Tester.__init__(self, *args, **kwargs)
Exemplo n.º 8
0
 def __init__(self, *args, **kwargs):
     self.ignore_log_patterns = [
         # This one occurs if we do a non-rolling upgrade, the node
         # it's trying to send the migration to hasn't started yet,
         # and when it does, it gets replayed and everything is fine.
         r'Can\'t send migration request: node.*is down',
     ]
     Tester.__init__(self, *args, **kwargs)
Exemplo n.º 9
0
 def __init__(self, *args, **kwargs):
     self.ignore_log_patterns = [
         # This one occurs if we do a non-rolling upgrade, the node
         # it's trying to send the migration to hasn't started yet,
         # and when it does, it gets replayed and everything is fine.
         r'Can\'t send migration request: node.*is down',
     ]
     Tester.__init__(self, *args, **kwargs)
Exemplo n.º 10
0
 def __init__(self, *args, **kwargs):
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         # This one occurs when trying to send the migration to a
         # node that hasn't started yet, and when it does, it gets
         # replayed and everything is fine.
         r'Can\'t send migration request: node.*is down',
     ]
     Tester.__init__(self, *args, **kwargs)
Exemplo n.º 11
0
 def __init__(self, *args, **kwargs):
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         # This one occurs when trying to send the migration to a
         # node that hasn't started yet, and when it does, it gets
         # replayed and everything is fine.
         r'Can\'t send migration request: node.*is down',
     ]
     Tester.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         # This one occurs if we do a non-rolling upgrade, the node
         # it's trying to send the migration to hasn't started yet,
         # and when it does, it gets replayed and everything is fine.
         r'Can\'t send migration request: node.*is down',
     ]
     # Force cluster options that are common among versions:
     kwargs['cluster_options'] = {'partitioner':'org.apache.cassandra.dht.RandomPartitioner'}
     Tester.__init__(self, *args, **kwargs)
Exemplo n.º 13
0
 def __init__(self, *args, **kwargs):
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         # This one occurs if we do a non-rolling upgrade, the node
         # it's trying to send the migration to hasn't started yet,
         # and when it does, it gets replayed and everything is fine.
         r'Can\'t send migration request: node.*is down',
         r'RejectedExecutionException.*ThreadPoolExecutor has shut down',
         r'Cannot update data center or rack from.*for live host'  # occurs due to test/ccm writing topo on down nodes
     ]
     self.subprocs = []
     Tester.__init__(self, *args, **kwargs)
Exemplo n.º 14
0
 def __init__(self, *args, **kwargs):
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         # This one occurs if we do a non-rolling upgrade, the node
         # it's trying to send the migration to hasn't started yet,
         # and when it does, it gets replayed and everything is fine.
         r'Can\'t send migration request: node.*is down',
     ]
     self.subprocs = []
     # Force cluster options that are common among versions:
     kwargs['cluster_options'] = {'partitioner': 'org.apache.cassandra.dht.Murmur3Partitioner'}
     Tester.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         # This one occurs if we do a non-rolling upgrade, the node
         # it's trying to send the migration to hasn't started yet,
         # and when it does, it gets replayed and everything is fine.
         r'Can\'t send migration request: node.*is down',
         r'RejectedExecutionException.*ThreadPoolExecutor has shut down',
         r'Cannot update data center or rack from.*for live host'  # occurs due to test/ccm writing topo on down nodes
     ]
     self.subprocs = []
     Tester.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         # This one occurs when trying to send the migration to a
         # node that hasn't started yet, and when it does, it gets
         # replayed and everything is fine.
         r'Can\'t send migration request: node.*is down',
         # This is caused by starting a node improperly (replacing active/nonexistent)
         r'Exception encountered during startup',
         # This is caused by trying to replace a nonexistent node
         r'Exception in thread Thread'
     ]
     Tester.__init__(self, *args, **kwargs)
Exemplo n.º 17
0
 def __init__(self, *args, **kwargs):
     kwargs['cluster_options'] = {'start_rpc': 'true'}
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         # This one occurs when trying to send the migration to a
         # node that hasn't started yet, and when it does, it gets
         # replayed and everything is fine.
         r'Can\'t send migration request: node.*is down',
         # ignore streaming error during bootstrap
         r'Exception encountered during startup',
         r'Streaming error occurred'
     ]
     Tester.__init__(self, *args, **kwargs)
Exemplo n.º 18
0
 def __init__(self, *args, **kwargs):
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         # This one occurs when trying to send the migration to a
         # node that hasn't started yet, and when it does, it gets
         # replayed and everything is fine.
         r'Can\'t send migration request: node.*is down',
         # This is caused by starting a node improperly (replacing active/nonexistent)
         r'Exception encountered during startup',
         # This is caused by trying to replace a nonexistent node
         r'Exception in thread Thread'
     ]
     Tester.__init__(self, *args, **kwargs)
Exemplo n.º 19
0
 def __init__(self, *args, **kwargs):
     kwargs['cluster_options'] = {'start_rpc': 'true'}
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         # This one occurs when trying to send the migration to a
         # node that hasn't started yet, and when it does, it gets
         # replayed and everything is fine.
         r'Can\'t send migration request: node.*is down',
         # ignore streaming error during bootstrap
         r'Exception encountered during startup',
         r'Streaming error occurred'
     ]
     Tester.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     kwargs["cluster_options"] = {"start_rpc": "true"}
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         # This one occurs when trying to send the migration to a
         # node that hasn't started yet, and when it does, it gets
         # replayed and everything is fine.
         r"Can\'t send migration request: node.*is down",
         # ignore streaming error during bootstrap
         r"Exception encountered during startup",
         r"Streaming error occurred",
     ]
     Tester.__init__(self, *args, **kwargs)
Exemplo n.º 21
0
    def __init__(self, *args, **kwargs):
        # Ignore these log patterns:
        self.ignore_log_patterns = [
            # This one occurs if we do a non-rolling upgrade, the node
            # it's trying to send the migration to hasn't started yet,
            # and when it does, it gets replayed and everything is fine.
            r'Can\'t send migration request: node.*is down',
        ]

        # Force cluster options that are common among versions:
        kwargs['cluster_options'] = {'authenticator': 'PasswordAuthenticator',
                                     'authorizer': 'CassandraAuthorizer'}
        Tester.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     kwargs['cluster_options'] = {'start_rpc': 'true'}
     self.replacement_node = None
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         # This one occurs when trying to send the migration to a
         # node that hasn't started yet, and when it does, it gets
         # replayed and everything is fine.
         r'Can\'t send migration request: node.*is down',
         r'Migration task failed to complete',  # 10978
         # ignore streaming error during bootstrap
         r'Streaming error occurred',
         r'failed stream session'
     ]
     Tester.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         # This one occurs if we do a non-rolling upgrade, the node
         # it's trying to send the migration to hasn't started yet,
         # and when it does, it gets replayed and everything is fine.
         r'Can\'t send migration request: node.*is down',
         r'RejectedExecutionException.*ThreadPoolExecutor has shut down',
         # Occurs due to test/ccm writing topo on down nodes
         r'Cannot update data center or rack from.*for live host',
         # Normal occurance. See CASSANDRA-12026. Likely won't be needed after C* 4.0.
         r'Unknown column cdc during deserialization',
     ]
     self.subprocs = []
     Tester.__init__(self, *args, **kwargs)
Exemplo n.º 24
0
 def __init__(self, *args, **kwargs):
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         # This one occurs if we do a non-rolling upgrade, the node
         # it's trying to send the migration to hasn't started yet,
         # and when it does, it gets replayed and everything is fine.
         r'Can\'t send migration request: node.*is down',
         r'RejectedExecutionException.*ThreadPoolExecutor has shut down',
         # Occurs due to test/ccm writing topo on down nodes
         r'Cannot update data center or rack from.*for live host',
         # Normal occurance. See CASSANDRA-12026. Likely won't be needed after C* 4.0.
         r'Unknown column cdc during deserialization',
     ]
     self.subprocs = []
     Tester.__init__(self, *args, **kwargs)
    def __init__(self, *args, **kwargs):
        self.ignore_log_patterns = [
            # This one occurs if we do a non-rolling upgrade, the node
            # it's trying to send the migration to hasn't started yet,
            # and when it does, it gets replayed and everything is fine.
            r'Can\'t send migration request: node.*is down',
        ]
        if CASSANDRA_VERSION_FROM_BUILD < '2.2':
            _known_teardown_race_error = (
                'ScheduledThreadPoolExecutor$ScheduledFutureTask@[0-9a-f]+ '
                'rejected from org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor'
            )
            # don't alter ignore_log_patterns on the class, just the obj for this test
            self.ignore_log_patterns += [_known_teardown_race_error]

        Tester.__init__(self, *args, **kwargs)
    def __init__(self, *args, **kwargs):
        self.ignore_log_patterns = [
            # This one occurs if we do a non-rolling upgrade, the node
            # it's trying to send the migration to hasn't started yet,
            # and when it does, it gets replayed and everything is fine.
            r'Can\'t send migration request: node.*is down',
        ]
        if CASSANDRA_VERSION_FROM_BUILD < '2.2':
            _known_teardown_race_error = (
                'ScheduledThreadPoolExecutor$ScheduledFutureTask@[0-9a-f]+ '
                'rejected from org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor'
            )
            # don't alter ignore_log_patterns on the class, just the obj for this test
            self.ignore_log_patterns += [_known_teardown_race_error]

        Tester.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     kwargs['cluster_options'] = {'start_rpc': 'true'}
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         # This one occurs when trying to send the migration to a
         # node that hasn't started yet, and when it does, it gets
         # replayed and everything is fine.
         r'Can\'t send migration request: node.*is down',
         # This is caused by starting a node improperly (replacing active/nonexistent)
         r'Exception encountered during startup',
         # This is caused by trying to replace a nonexistent node
         r'Exception in thread Thread',
         # ignore streaming error during bootstrap
         r'Streaming error occurred'
     ]
     Tester.__init__(self, *args, **kwargs)
     self.allow_log_errors = True
 def __init__(self, *argv, **kwargs):
     if self.jvm_args is None:
         self.jvm_args = []
     kwargs['cluster_options'] = {'start_rpc': True}
     Tester.__init__(self, *argv, **kwargs)
     self.allow_log_errors = True
 def __init__(self, *args, **kwargs):
     # Forcing cluster version on purpose
     os.environ['CASSANDRA_VERSION'] = versions[0]
     # Force cluster options that are common among versions:
     kwargs['cluster_options'] = {'partitioner':'org.apache.cassandra.dht.RandomPartitioner'}
     Tester.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     Tester.__init__(self, *args, **kwargs)
     self.lock = threading.Lock()
Exemplo n.º 31
0
 def __init__(self, *args, **kwargs):
     kwargs['cluster_options'] = {'start_rpc': 'true'}
     Tester.__init__(self, *args, **kwargs)
    def __init__(self, *args, **kwargs):
        Tester.__init__(self, *args, **kwargs)

        # Generate 1000 rows in memory so we can re-use the same ones over again:
        self.groups = ['group1', 'group2', 'group3', 'group4']
        self.rows = [(str(uuid.uuid1()), x, random.choice(self.groups)) for x in range(1000)]
Exemplo n.º 33
0
 def __init__(self, *args, **kwargs):
     Tester.__init__(self, *args, **kwargs)
     self.ignore_log_patterns = ["Fatal exception during initialization",
                                 "Cannot start node if snitch's rack (.*) differs from previous rack (.*)",
                                 "Cannot update data center or rack"]
Exemplo n.º 34
0
 def __init__(self, *argv, **kwargs):
     if self.jvm_args is None:
         self.jvm_args = []
     kwargs['cluster_options'] = {'start_rpc': True}
     Tester.__init__(self, *argv, **kwargs)
     self.allow_log_errors = True
 def __init__(self, *args, **kwargs):
     kwargs["cluster_options"] = {"start_rpc": "true"}
     Tester.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     Tester.__init__(self, *args, **kwargs)
     self.lock = threading.Lock()
 def __init__(self, *args, **kwargs):
     self.subprocs = []
     Tester.__init__(self, *args, **kwargs)
Exemplo n.º 38
0
 def __init__(self, *args, **kwargs):
     Tester.__init__(self, *args, **kwargs)
Exemplo n.º 39
0
 def __init__(self, *args, **kwargs):
     # Forcing cluster version on purpose
     os.environ['CASSANDRA_VERSION'] = 'git:cassandra-1.2'
     Tester.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     Tester.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     # Ignore these log patterns:
     self.ignore_log_patterns = [
         r'Can\'t send migration request: node.*is down',
     ]
     Tester.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     self.subprocs = []
     Tester.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     kwargs['cluster_options'] = {'enable_user_defined_functions': 'true'}
     Tester.__init__(self, *args, **kwargs)