impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Knupp (Code Review)" <ger...@cloudera.org>
Subject [Impala-ASF-CR] IMPALA-4839: Remote Kudu tests failing because loopback is hard-coded
Date Fri, 03 Feb 2017 17:51:29 GMT
David Knupp has uploaded a new change for review.

  http://gerrit.cloudera.org:8080/5877

Change subject: IMPALA-4839: Remote Kudu tests failing because loopback is hard-coded
......................................................................

IMPALA-4839: Remote Kudu tests failing because loopback is hard-coded

The Kudu query tests were failing on a remote cluster because the Kudu
master was always set to '127.0.0.1', with no way to ovderride it.

This patch corrects the issue with a number of change:

- Add a pytest command line option to specify an arbitrary Kudu master

- Consolidate the place where the default Kudu master is derived. It
  had been stored both in the env and in tests/common/__init__.py,
  with different files looking to different places. For now, just look
  to the env, and remove the value from __init__.py.

- The kudu_client test fixture in conftest.py was using the connect()
  method from impala.dbapi (part of the Impyla library), without
  specifying the host param. In the absence of that, the default value
  is 'localhost', so add the host param to the connect() call.

- Define the various defaults for pytest config as constants at the top
  of conftest.py.

Change-Id: I9df71480a165f4ce21ae3edab6ce7227fbf76f77
---
M bin/start-impala-cluster.py
M testdata/bin/generate-schema-statements.py
M tests/common/__init__.py
M tests/common/impala_test_suite.py
M tests/conftest.py
M tests/custom_cluster/test_kudu.py
M tests/query_test/test_kudu.py
7 files changed, 43 insertions(+), 29 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/77/5877/4
-- 
To view, visit http://gerrit.cloudera.org:8080/5877
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9df71480a165f4ce21ae3edab6ce7227fbf76f77
Gerrit-PatchSet: 4
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: David Knupp <dknupp@cloudera.com>
Gerrit-Reviewer: Matthew Jacobs <mj@cloudera.com>
Gerrit-Reviewer: Michael Brown <mikeb@cloudera.com>

Mime
View raw message