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

tests/authorization/test_provider.py breaks on CentOS 6 with Python 2.7-ism

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Impala 3.3.0
    • Component/s: None
    • Labels:
    • Epic Color:
      ghx-label-2

      Description

      tests/authorization/test_provider.py contains a format string variant not available on Python 2.6.x, which is the default Python version on CentOS 6. This breaks the test on CentOS 6:

      20:31:53 =========================== short test summary info ============================
      20:31:53 XFAIL custom_cluster/test_alloc_fail.py::TestAllocFail::()::test_alloc_fail_update[protocol: beeswax | exec_option: {'batch_size': 0, 'num_nodes': 0, 'disable_codegen_rows_threshold': 0, 'disable_codegen': False, 'abort_on_error': 1, 'exec_single_node_rows_threshold': 0} | table_format: text/none]
      20:31:53   IMPALA-2925: the execution is not deterministic so some tests sometimes don't fail as expected
      20:31:53 FAIL authorization/test_provider.py::TestAuthorizationProvider::()::test_invalid_provider_flag
      20:31:53 =================================== FAILURES ===================================
      20:31:53 _____________ TestAuthorizationProvider.test_invalid_provider_flag _____________
      20:31:53 authorization/test_provider.py:59: in test_invalid_provider_flag
      20:31:53     .format(TestAuthorizationProvider.BAD_FLAG))
      20:31:53 E   ValueError: zero length field name in format
      20:31:53 ---------------------------- Captured stderr setup -----------------------------
      

        Attachments

          Activity

            People

            • Assignee:
              fredyw Fredy Wijaya
              Reporter:
              laszlog Laszlo Gaal
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: