Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-12914

test_banned_log_messages fails if Impala is not running

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Infrastructure
    • None
    • ghx-label-2

    Description

      run-all-tests.sh fails at the end - in test_banned_log_messages.py - if used to test a custom cluster test that finishes with Impala stopped, such as custom_cluster/test_coordinators.py::TestCoordinators::test_exclusive_coordinator_plan. The error is

      verifiers/test_banned_log_messages.py::TestBannedLogMessages::test_no_inaccessible_objects ERROR
      verifiers/test_banned_log_messages.py::TestBannedLogMessages::test_no_unsupported_operations ERROR
      
       generated xml file: /data/jenkins/workspace/impala-private-basic-parameterized/repos/Impala/logs/verifiers/TEST-impala-verifiers.xml 
      =========================== short test summary info ============================
      ERROR verifiers/test_banned_log_messages.py::TestBannedLogMessages::()::test_no_inaccessible_objects
      ERROR verifiers/test_banned_log_messages.py::TestBannedLogMessages::()::test_no_unsupported_operations
      ==================================== ERRORS ====================================
      _____ ERROR at setup of TestBannedLogMessages.test_no_inaccessible_objects _____
      common/impala_test_suite.py:226: in setup_class
          cls.create_impala_clients()
      common/impala_test_suite.py:327: in create_impala_clients
          cls.client = cls.create_impala_client(protocol='beeswax')
      common/impala_test_suite.py:310: in create_impala_client
          client.connect()
      common/impala_connection.py:196: in connect
          self.__beeswax_client.connect()
      beeswax/impala_beeswax.py:166: in connect
          raise ImpalaBeeswaxException(self.__build_error_message(e), e)
      E   ImpalaBeeswaxException: ImpalaBeeswaxException:
      E    INNER EXCEPTION: <class 'thrift.transport.TTransport.TTransportException'>
      E    MESSAGE: Could not connect to any of [('::1', 21000, 0, 0), ('127.0.0.1', 21000)]
      ---------------------------- Captured stderr setup -----------------------------
      SET client_identifier=verifiers/test_banned_log_messages.py::TestBannedLogMessages::()::test_no_inaccessible_objects;
      -- connecting to: localhost:21000
      -- 2024-03-15 12:08:43,506 INFO     MainThread: Could not connect to ('::1', 21000, 0, 0)
      Traceback (most recent call last):
        File "/data0/jenkins/workspace/impala-private-basic-parameterized/repos/Impala/infra/python/env-gcc10.4.0/lib/python2.7/site-packages/thrift/transport/TSocket.py", line 137, in open
          handle.connect(sockaddr)
        File "/data/jenkins/workspace/impala-private-basic-parameterized/Impala-Toolchain/toolchain-packages-gcc10.4.0/python-2.7.16/lib/python2.7/socket.py", line 228, in meth
          return getattr(self._sock,name)(*args)
      error: [Errno 111] Connection refused
      -- 2024-03-15 12:08:43,506 INFO     MainThread: Could not connect to ('127.0.0.1', 21000)
      Traceback (most recent call last):
        File "/data0/jenkins/workspace/impala-private-basic-parameterized/repos/Impala/infra/python/env-gcc10.4.0/lib/python2.7/site-packages/thrift/transport/TSocket.py", line 137, in open
          handle.connect(sockaddr)
        File "/data/jenkins/workspace/impala-private-basic-parameterized/Impala-Toolchain/toolchain-packages-gcc10.4.0/python-2.7.16/lib/python2.7/socket.py", line 228, in meth
          return getattr(self._sock,name)(*args)
      error: [Errno 111] Connection refused
      -- 2024-03-15 12:08:43,506 ERROR    MainThread: Could not connect to any of [('::1', 21000, 0, 0), ('127.0.0.1', 21000)]
      ____ ERROR at setup of TestBannedLogMessages.test_no_unsupported_operations ____
      common/impala_test_suite.py:226: in setup_class
          cls.create_impala_clients()
      common/impala_test_suite.py:327: in create_impala_clients
          cls.client = cls.create_impala_client(protocol='beeswax')
      common/impala_test_suite.py:310: in create_impala_client
          client.connect()
      common/impala_connection.py:196: in connect
          self.__beeswax_client.connect()
      beeswax/impala_beeswax.py:166: in connect
          raise ImpalaBeeswaxException(self.__build_error_message(e), e)
      E   ImpalaBeeswaxException: ImpalaBeeswaxException:
      E    INNER EXCEPTION: <class 'thrift.transport.TTransport.TTransportException'>
      E    MESSAGE: Could not connect to any of [('::1', 21000, 0, 0), ('127.0.0.1', 21000)]
      =========================== 2 error in 0.18 seconds ============================
      

      This test only checks that logs on disk do not contain specific messages, and should not require a running cluster.

      Attachments

        Activity

          People

            MikaelSmith Michael Smith
            MikaelSmith Michael Smith
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: