You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@impala.apache.org by "Michael Brown (Code Review)" <ge...@cloudera.org> on 2016/04/12 00:07:37 UTC

[Impala-CR](cdh5-trunk) IMPALA-3329: custom cluster tests: set -max_log_files to unlimited

Michael Brown has uploaded a new change for review.

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

Change subject: IMPALA-3329: custom cluster tests: set -max_log_files to unlimited
......................................................................

IMPALA-3329: custom cluster tests: set -max_log_files to unlimited

In custom cluster tests, the Impala mini-cluster is restarted as part of
the setup phase of every test, which means this is done more than 10
times. This means that on the 11th and subsequent start, some logs are
rotated out, since the -max_log_files default is 10. This is a problem
if one of the earlier custom cluster tests failed, and there is no
access to the impalad et al logs during the test.

Plumb setting of -max_log_files to catalogd, statestored, and impalad
through start-impala-cluster.py via environment variable
IMPALA_MAX_LOG_FILES. Keep its default to 10 so as not to blow up the
size of log directories, except when running the custom cluster tests.
When running those tests, set IMPALA_MAX_LOG_FILES to 0 to preserve all
logs. Only allow one test run's logs to exist in the directory at a
time.

Change-Id: Iefbb2a8616adcb0cd2fb838505117e0e9ba39083
---
M bin/impala-config.sh
M bin/run-all-tests.sh
M bin/start-impala-cluster.py
3 files changed, 25 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala refs/changes/59/2759/1
-- 
To view, visit http://gerrit.cloudera.org:8080/2759
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iefbb2a8616adcb0cd2fb838505117e0e9ba39083
Gerrit-PatchSet: 1
Gerrit-Project: Impala
Gerrit-Branch: cdh5-trunk
Gerrit-Owner: Michael Brown <mi...@cloudera.com>