[ 
https://issues.apache.org/jira/browse/IMPALA-7675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tianyi Wang resolved IMPALA-7675.
---------------------------------
       Resolution: Fixed
    Fix Version/s: Impala 3.1.0

IMPALA-7675: Fix the error handling of UpdateTableUsage() RPC

UpdateTableUsage() is logically a one-way RPC and the status object in
TUpdateTableUsageResponse is set only if there is an error at RPC
layer. This patch fixes the incorrect error handling that leads to
NullPointerException in ImpaladTableUsageTracer.

Change-Id: Iccba4c6f4696ef08bc8a614ae13f62b5e445917b
Reviewed-on: http://gerrit.cloudera.org:8080/11603
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> The result of UpdateTableUsage() RPC is not correctly handled.
> --------------------------------------------------------------
>
>                 Key: IMPALA-7675
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7675
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Frontend
>    Affects Versions: Impala 3.1.0
>            Reporter: Tianyi Wang
>            Assignee: Tianyi Wang
>            Priority: Major
>             Fix For: Impala 3.1.0
>
>
> ImpalaTableUsageTracker.report() doesn't handle the result of 
> UpdateTableUsage() RPC correctly and triggers NullpointerException:
> {noformat}
> W1003 11:07:39.252918  6910 ImpaladTableUsageTracker.java:116] Unable to 
> report table usage information to catalog server.
> Java exception follows:
> java.lang.NullPointerException
>         at 
> org.apache.impala.catalog.ImpaladTableUsageTracker.report(ImpaladTableUsageTracker.java:110)
>         at 
> org.apache.impala.catalog.ImpaladTableUsageTracker.access$000(ImpaladTableUsageTracker.java:44)
>         at 
> org.apache.impala.catalog.ImpaladTableUsageTracker$1.run(ImpaladTableUsageTracker.java:56)
>         at java.lang.Thread.run(Thread.java:748)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to