Failure to execute queries should emit a KPI other than read timeout/unavailable so it can be alerted/tracked
patch by David Capwell; reviewed by Sam Tunnicliffe for CASSANDRA-16581
diff --git a/cqlsh_tests/test_cqlsh.py b/cqlsh_tests/test_cqlsh.py
index 85333d5..8a2a98e 100644
--- a/cqlsh_tests/test_cqlsh.py
+++ b/cqlsh_tests/test_cqlsh.py
@@ -1883,6 +1883,10 @@
"""
@jira_ticket CASSANDRA-15193
"""
+ self.fixture_dtest_setup.ignore_log_patterns = (
+ r'.*Unknown exception in client networking.*',
+ r'.*Invalid or unsupported protocol version \(4\).*',
+ )
self.cluster.populate(1)
self.cluster.set_configuration_options({ 'native_transport_max_negotiable_protocol_version': str(3)})
self.cluster.start()
diff --git a/cqlsh_tests/test_cqlsh_copy.py b/cqlsh_tests/test_cqlsh_copy.py
index 32db55f..396de32 100644
--- a/cqlsh_tests/test_cqlsh_copy.py
+++ b/cqlsh_tests/test_cqlsh_copy.py
@@ -49,6 +49,12 @@
@jira_ticket CASSANDRA-3906
"""
+ @pytest.fixture(autouse=True)
+ def fixture_add_additional_log_patterns(self, fixture_dtest_setup):
+ fixture_dtest_setup.ignore_log_patterns = (
+ r'.*Unknown exception in client networking.*'
+ )
+
@pytest.fixture(scope='function', autouse=True)
def fixture_temp_files(self):
self._tempfiles = []
diff --git a/native_transport_ssl_test.py b/native_transport_ssl_test.py
index 6901ef2..4d49103 100644
--- a/native_transport_ssl_test.py
+++ b/native_transport_ssl_test.py
@@ -18,6 +18,12 @@
Native transport integration tests, specifically for ssl and port configurations.
"""
+ @pytest.fixture(autouse=True)
+ def fixture_add_additional_log_patterns(self, fixture_dtest_setup):
+ fixture_dtest_setup.ignore_log_patterns = (
+ r'.*Unknown exception in client networking.*'
+ )
+
def test_connect_to_ssl(self):
"""
Connecting to SSL enabled native transport port should only be possible using SSL enabled client