Fang-Yu Rao created IMPALA-14159:
------------------------------------

             Summary: Consider adding test cases for a bug in kudu-client
                 Key: IMPALA-14159
                 URL: https://issues.apache.org/jira/browse/IMPALA-14159
             Project: IMPALA
          Issue Type: Task
            Reporter: Fang-Yu Rao
            Assignee: Fang-Yu Rao


We found that after [[java] client update master locations 
cache|https://github.com/apache/kudu/commit/a50aa5bfd], Impala could hit a 
NullPointerException when executing the ALTER TABLE command. Specifically, in 
the following in 
[TableLocationsCache.java|https://github.com/apache/kudu/commit/a50aa5bfd#diff-d4f31763f7795ce8926f6c8006058d04bc3fb8562de04f9d88936a9cdfffe41aR64-R69],
 there is no guarantee that '{{{}entry{}}}' would be a non-null value. If 
'{{{}entry{}}}' is null, then Impala would encounter a NullPointerException. 
Once [https://gerrit.cloudera.org/c/22958/] is done, we should consider adding 
tests in Impala too to make sure the issue is resolved.
{code:java}
        Preconditions.checkState(entries.size() <= 1);
        TableLocationsCache.Entry entry = 
entries.get(AsyncKuduClient.EMPTY_ARRAY);
        if (entry.isStale()) {
          return null;
        }
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org

Reply via email to