mirror of
https://github.com/apache/impala.git
synced 2025-12-30 21:02:41 -05:00
When passing comamnd line options to a new instance of the ImpalaShell, we ususally transfer the options to member variables of that new instance. We weren't doing that with all of the LDAP-related options, even though we wanted to access them later. In some environments and under certain conditions, this could then lead to a NameError exception being thrown. This patch takes away any reliance on the original options object returned by parse_args() beyond the __init__() method of the ImpalaShell class, by tranferring all LDAP options to member variables. Also, a test has been added to exercise the code path where the exception had been occurring. Change-Id: I810850f569ef3f4487f7eeba81ca520dc955ac2e Reviewed-on: http://gerrit.cloudera.org:8080/9744 Reviewed-by: Michael Brown <mikeb@cloudera.com> Tested-by: Impala Public Jenkins