[jira] [Resolved] (IMPALA-4238) custom_cluster/test_client_ssl.py TestClientSsl.test_ssl AssertionError: SIGINT was not caught by shell within 30s

2020-11-24 Thread Tim Armstrong (Jira)


 [ 
https://issues.apache.org/jira/browse/IMPALA-4238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Armstrong resolved IMPALA-4238.
---
Fix Version/s: Impala 4.0
   Resolution: Fixed

> custom_cluster/test_client_ssl.py TestClientSsl.test_ssl AssertionError: 
> SIGINT was not caught by shell within 30s
> --
>
> Key: IMPALA-4238
> URL: https://issues.apache.org/jira/browse/IMPALA-4238
> Project: IMPALA
>  Issue Type: Bug
>  Components: Security
>Affects Versions: Impala 2.8.0, Impala 2.10.0
>Reporter: Harrison Sheinblatt
>Assignee: Tim Armstrong
>Priority: Critical
>  Labels: broken-build, flaky
> Fix For: Impala 4.0
>
>
> asf master core test failure: 
> http://sandbox.jenkins.sf.cloudera.com/view/Impala/view/Evergreen-asf-master/job/impala-asf-master-core/540/
> http://sandbox.jenkins.sf.cloudera.com/job/impala-umbrella-build-and-test/4921/console
> {noformat}
> 08:18:51 === FAILURES 
> ===
> 08:18:51  TestClientSsl.test_ssl[exec_option: {'disable_codegen': False, 
> 'abort_on_error': 1, 'exec_single_node_rows_threshold': 0, 'batch_size': 0, 
> 'num_nodes': 0} | table_format: text/none] 
> 08:18:51 
> 08:18:51 self = 
> 08:18:51 vector = 
> 08:18:51 
> 08:18:51 @pytest.mark.execute_serially
> 08:18:51 
> @CustomClusterTestSuite.with_args("--ssl_server_certificate=%s/server-cert.pem
>  "
> 08:18:51   
> "--ssl_private_key=%s/server-key.pem"
> 08:18:51   % (CERT_DIR, CERT_DIR))
> 08:18:51 def test_ssl(self, vector):
> 08:18:51 
> 08:18:51   self._verify_negative_cases()
> 08:18:51   # TODO: This is really two different tests, but the custom 
> cluster takes too long to
> 08:18:51   # start. Make it so that custom clusters can be specified 
> across test suites.
> 08:18:51   self._validate_positive_cases("%s/server-cert.pem" % 
> self.CERT_DIR)
> 08:18:51 
> 08:18:51   # No certificate checking: will accept any cert.
> 08:18:51   self._validate_positive_cases()
> 08:18:51 
> 08:18:51   # Test cancelling a query
> 08:18:51   impalad = ImpaladService(socket.getfqdn())
> 08:18:51   impalad.wait_for_num_in_flight_queries(0)
> 08:18:51   p = ImpalaShell(args="--ssl")
> 08:18:51   p.send_cmd("SET DEBUG_ACTION=0:OPEN:WAIT")
> 08:18:51   p.send_cmd("select count(*) from functional.alltypes")
> 08:18:51   impalad.wait_for_num_in_flight_queries(1)
> 08:18:51 
> 08:18:51   LOG = logging.getLogger('test_client_ssl')
> 08:18:51   LOG.info("Cancelling query")
> 08:18:51   num_tries = 0
> 08:18:51   # In practice, sending SIGINT to the shell process doesn't 
> always seem to get caught
> 08:18:51   # (and a search shows up some bugs in Python where SIGINT 
> might be ignored). So retry
> 08:18:51   # for 30s until one signal takes.
> 08:18:51   while impalad.get_num_in_flight_queries() == 1:
> 08:18:51 time.sleep(1)
> 08:18:51 LOG.info("Sending signal...")
> 08:18:51 os.kill(p.pid(), signal.SIGINT)
> 08:18:51 num_tries += 1
> 08:18:51 >   assert num_tries < 30, "SIGINT was not caught by shell 
> within 30s"
> 08:18:51 E   AssertionError: SIGINT was not caught by shell within 30s
> 08:18:51 E   assert 30 < 30
> 08:18:51 
> 08:18:51 custom_cluster/test_client_ssl.py:85: AssertionError
> 08:18:51  Captured stdout setup 
> -
> 08:18:51 Starting State Store logging to 
> /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/logs/custom_cluster_tests/statestored.INFO
> 08:18:51 Starting Catalog Service logging to 
> /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/logs/custom_cluster_tests/catalogd.INFO
> 08:18:51 Starting Impala Daemon logging to 
> /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/logs/custom_cluster_tests/impalad.INFO
> 08:18:51 Starting Impala Daemon logging to 
> /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/logs/custom_cluster_tests/impalad_node1.INFO
> 08:18:51 Starting Impala Daemon logging to 
> /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/logs/custom_cluster_tests/impalad_node2.INFO
> 08:18:51 Waiting for Catalog... Status: 53 DBs / 1077 tables (ready=True)
> 08:18:51 Waiting for Catalog... Status: 53 DBs / 1077 tables (ready=True)
> 08:18:51 Waiting for Catalog... Status: 53 DBs / 1077 tables (ready=True)
> 08:18:51 Impala Cluster Running with 3 nodes.
> 08:18:51  Captured stderr setup 
> -
> 08:18:51 

[jira] [Resolved] (IMPALA-4238) custom_cluster/test_client_ssl.py TestClientSsl.test_ssl AssertionError: SIGINT was not caught by shell within 30s

2020-11-24 Thread Tim Armstrong (Jira)


 [ 
https://issues.apache.org/jira/browse/IMPALA-4238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Armstrong resolved IMPALA-4238.
---
Fix Version/s: Impala 4.0
   Resolution: Fixed

> custom_cluster/test_client_ssl.py TestClientSsl.test_ssl AssertionError: 
> SIGINT was not caught by shell within 30s
> --
>
> Key: IMPALA-4238
> URL: https://issues.apache.org/jira/browse/IMPALA-4238
> Project: IMPALA
>  Issue Type: Bug
>  Components: Security
>Affects Versions: Impala 2.8.0, Impala 2.10.0
>Reporter: Harrison Sheinblatt
>Assignee: Tim Armstrong
>Priority: Critical
>  Labels: broken-build, flaky
> Fix For: Impala 4.0
>
>
> asf master core test failure: 
> http://sandbox.jenkins.sf.cloudera.com/view/Impala/view/Evergreen-asf-master/job/impala-asf-master-core/540/
> http://sandbox.jenkins.sf.cloudera.com/job/impala-umbrella-build-and-test/4921/console
> {noformat}
> 08:18:51 === FAILURES 
> ===
> 08:18:51  TestClientSsl.test_ssl[exec_option: {'disable_codegen': False, 
> 'abort_on_error': 1, 'exec_single_node_rows_threshold': 0, 'batch_size': 0, 
> 'num_nodes': 0} | table_format: text/none] 
> 08:18:51 
> 08:18:51 self = 
> 08:18:51 vector = 
> 08:18:51 
> 08:18:51 @pytest.mark.execute_serially
> 08:18:51 
> @CustomClusterTestSuite.with_args("--ssl_server_certificate=%s/server-cert.pem
>  "
> 08:18:51   
> "--ssl_private_key=%s/server-key.pem"
> 08:18:51   % (CERT_DIR, CERT_DIR))
> 08:18:51 def test_ssl(self, vector):
> 08:18:51 
> 08:18:51   self._verify_negative_cases()
> 08:18:51   # TODO: This is really two different tests, but the custom 
> cluster takes too long to
> 08:18:51   # start. Make it so that custom clusters can be specified 
> across test suites.
> 08:18:51   self._validate_positive_cases("%s/server-cert.pem" % 
> self.CERT_DIR)
> 08:18:51 
> 08:18:51   # No certificate checking: will accept any cert.
> 08:18:51   self._validate_positive_cases()
> 08:18:51 
> 08:18:51   # Test cancelling a query
> 08:18:51   impalad = ImpaladService(socket.getfqdn())
> 08:18:51   impalad.wait_for_num_in_flight_queries(0)
> 08:18:51   p = ImpalaShell(args="--ssl")
> 08:18:51   p.send_cmd("SET DEBUG_ACTION=0:OPEN:WAIT")
> 08:18:51   p.send_cmd("select count(*) from functional.alltypes")
> 08:18:51   impalad.wait_for_num_in_flight_queries(1)
> 08:18:51 
> 08:18:51   LOG = logging.getLogger('test_client_ssl')
> 08:18:51   LOG.info("Cancelling query")
> 08:18:51   num_tries = 0
> 08:18:51   # In practice, sending SIGINT to the shell process doesn't 
> always seem to get caught
> 08:18:51   # (and a search shows up some bugs in Python where SIGINT 
> might be ignored). So retry
> 08:18:51   # for 30s until one signal takes.
> 08:18:51   while impalad.get_num_in_flight_queries() == 1:
> 08:18:51 time.sleep(1)
> 08:18:51 LOG.info("Sending signal...")
> 08:18:51 os.kill(p.pid(), signal.SIGINT)
> 08:18:51 num_tries += 1
> 08:18:51 >   assert num_tries < 30, "SIGINT was not caught by shell 
> within 30s"
> 08:18:51 E   AssertionError: SIGINT was not caught by shell within 30s
> 08:18:51 E   assert 30 < 30
> 08:18:51 
> 08:18:51 custom_cluster/test_client_ssl.py:85: AssertionError
> 08:18:51  Captured stdout setup 
> -
> 08:18:51 Starting State Store logging to 
> /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/logs/custom_cluster_tests/statestored.INFO
> 08:18:51 Starting Catalog Service logging to 
> /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/logs/custom_cluster_tests/catalogd.INFO
> 08:18:51 Starting Impala Daemon logging to 
> /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/logs/custom_cluster_tests/impalad.INFO
> 08:18:51 Starting Impala Daemon logging to 
> /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/logs/custom_cluster_tests/impalad_node1.INFO
> 08:18:51 Starting Impala Daemon logging to 
> /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/logs/custom_cluster_tests/impalad_node2.INFO
> 08:18:51 Waiting for Catalog... Status: 53 DBs / 1077 tables (ready=True)
> 08:18:51 Waiting for Catalog... Status: 53 DBs / 1077 tables (ready=True)
> 08:18:51 Waiting for Catalog... Status: 53 DBs / 1077 tables (ready=True)
> 08:18:51 Impala Cluster Running with 3 nodes.
> 08:18:51  Captured stderr setup 
> -
> 08:18:51 

[jira] [Resolved] (IMPALA-4238) custom_cluster/test_client_ssl.py TestClientSsl.test_ssl AssertionError: SIGINT was not caught by shell within 30s

2018-03-13 Thread Sailesh Mukil (JIRA)

 [ 
https://issues.apache.org/jira/browse/IMPALA-4238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sailesh Mukil resolved IMPALA-4238.
---
Resolution: Duplicate

> custom_cluster/test_client_ssl.py TestClientSsl.test_ssl AssertionError: 
> SIGINT was not caught by shell within 30s
> --
>
> Key: IMPALA-4238
> URL: https://issues.apache.org/jira/browse/IMPALA-4238
> Project: IMPALA
>  Issue Type: Bug
>  Components: Security
>Affects Versions: Impala 2.8.0, Impala 2.10.0
>Reporter: Harrison Sheinblatt
>Assignee: Sailesh Mukil
>Priority: Major
>  Labels: flaky
>
> asf master core test failure: 
> http://sandbox.jenkins.sf.cloudera.com/view/Impala/view/Evergreen-asf-master/job/impala-asf-master-core/540/
> http://sandbox.jenkins.sf.cloudera.com/job/impala-umbrella-build-and-test/4921/console
> {noformat}
> 08:18:51 === FAILURES 
> ===
> 08:18:51  TestClientSsl.test_ssl[exec_option: {'disable_codegen': False, 
> 'abort_on_error': 1, 'exec_single_node_rows_threshold': 0, 'batch_size': 0, 
> 'num_nodes': 0} | table_format: text/none] 
> 08:18:51 
> 08:18:51 self = 
> 08:18:51 vector = 
> 08:18:51 
> 08:18:51 @pytest.mark.execute_serially
> 08:18:51 
> @CustomClusterTestSuite.with_args("--ssl_server_certificate=%s/server-cert.pem
>  "
> 08:18:51   
> "--ssl_private_key=%s/server-key.pem"
> 08:18:51   % (CERT_DIR, CERT_DIR))
> 08:18:51 def test_ssl(self, vector):
> 08:18:51 
> 08:18:51   self._verify_negative_cases()
> 08:18:51   # TODO: This is really two different tests, but the custom 
> cluster takes too long to
> 08:18:51   # start. Make it so that custom clusters can be specified 
> across test suites.
> 08:18:51   self._validate_positive_cases("%s/server-cert.pem" % 
> self.CERT_DIR)
> 08:18:51 
> 08:18:51   # No certificate checking: will accept any cert.
> 08:18:51   self._validate_positive_cases()
> 08:18:51 
> 08:18:51   # Test cancelling a query
> 08:18:51   impalad = ImpaladService(socket.getfqdn())
> 08:18:51   impalad.wait_for_num_in_flight_queries(0)
> 08:18:51   p = ImpalaShell(args="--ssl")
> 08:18:51   p.send_cmd("SET DEBUG_ACTION=0:OPEN:WAIT")
> 08:18:51   p.send_cmd("select count(*) from functional.alltypes")
> 08:18:51   impalad.wait_for_num_in_flight_queries(1)
> 08:18:51 
> 08:18:51   LOG = logging.getLogger('test_client_ssl')
> 08:18:51   LOG.info("Cancelling query")
> 08:18:51   num_tries = 0
> 08:18:51   # In practice, sending SIGINT to the shell process doesn't 
> always seem to get caught
> 08:18:51   # (and a search shows up some bugs in Python where SIGINT 
> might be ignored). So retry
> 08:18:51   # for 30s until one signal takes.
> 08:18:51   while impalad.get_num_in_flight_queries() == 1:
> 08:18:51 time.sleep(1)
> 08:18:51 LOG.info("Sending signal...")
> 08:18:51 os.kill(p.pid(), signal.SIGINT)
> 08:18:51 num_tries += 1
> 08:18:51 >   assert num_tries < 30, "SIGINT was not caught by shell 
> within 30s"
> 08:18:51 E   AssertionError: SIGINT was not caught by shell within 30s
> 08:18:51 E   assert 30 < 30
> 08:18:51 
> 08:18:51 custom_cluster/test_client_ssl.py:85: AssertionError
> 08:18:51  Captured stdout setup 
> -
> 08:18:51 Starting State Store logging to 
> /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/logs/custom_cluster_tests/statestored.INFO
> 08:18:51 Starting Catalog Service logging to 
> /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/logs/custom_cluster_tests/catalogd.INFO
> 08:18:51 Starting Impala Daemon logging to 
> /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/logs/custom_cluster_tests/impalad.INFO
> 08:18:51 Starting Impala Daemon logging to 
> /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/logs/custom_cluster_tests/impalad_node1.INFO
> 08:18:51 Starting Impala Daemon logging to 
> /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/logs/custom_cluster_tests/impalad_node2.INFO
> 08:18:51 Waiting for Catalog... Status: 53 DBs / 1077 tables (ready=True)
> 08:18:51 Waiting for Catalog... Status: 53 DBs / 1077 tables (ready=True)
> 08:18:51 Waiting for Catalog... Status: 53 DBs / 1077 tables (ready=True)
> 08:18:51 Impala Cluster Running with 3 nodes.
> 08:18:51  Captured stderr setup 
> -
> 08:18:51 MainThread: Found 3 impalad/1 statestored/1 catalogd process(es)
> 08:18:51 MainThread: