A recent patch to address a problem line breaks in LDAP passwords (
IMPALA-6610) can, in rare instances (e.g., when running the shell as an installed python package), result in an exception being thrown if the call to _connect() fails.
The error is actually in the connection failure handling code:
The problem is that the shell instance should not assume continued access to the options returned from parser.parse_args(). In most cases, we store those values directly as member variables of the shell. We should do the same with all LDAP-related values, and then access those member variables.