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

TestImpalaShell.test_http_socket_timeout fails on Python3 with different message

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 4.1.0
    • Impala 4.2.0, Impala 4.1.1
    • Clients
    • None
    • ghx-label-12

    Description

      TestImpalaShell.test_http_socket_timeout fails when running with a Python 3 impala-shell due to this difference in the error message:

      >     assert result.stderr.splitlines()[0] == expected_err
      E     assert 'Caught excep...ning tries: 3' == 'Caught except...ning tries: 3'
      E       Skipping 59 identical leading characters in diff, use -v to show
      E       - e=<class 'BlockingIOError'> in OpenSession. Num remaining tries: 3
      E       ?           ^^   ^^^^^^
      E       + e=<class 'socket.error'> in OpenSession. Num remaining tries: 3
      E       ?           ^   ^^^^
      

      It seems like this is just different on Python 3, and we could tolerate either error message.

      https://github.com/apache/impala/blob/master/tests/shell/test_shell_commandline.py#L1206-L1208

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            joemcdonnell Joe McDonnell
            joemcdonnell Joe McDonnell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment