[ 
https://issues.apache.org/jira/browse/HIVE-26288?focusedWorklogId=795546&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-795546
 ]

ASF GitHub Bot logged work on HIVE-26288:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 27/Jul/22 07:55
            Start Date: 27/Jul/22 07:55
    Worklog Time Spent: 10m 
      Work Description: InvisibleProgrammer commented on code in PR #3451:
URL: https://github.com/apache/hive/pull/3451#discussion_r930738558


##########
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Worker.java:
##########
@@ -600,6 +602,10 @@ public CompactorMR getMrCompactor() {
   }
 
   private void markFailed(CompactionInfo ci, String errorMessage) {
+    if (ci == null) {
+      LOG.warn("CompactionInfo client was null. Could not mark failed: {}", 
ci);

Review Comment:
   Removed the parameter. Now it is: `LOG.warn("CompactionInfo client was null. 
Could not mark failed");`





Issue Time Tracking
-------------------

    Worklog Id:     (was: 795546)
    Time Spent: 20m  (was: 10m)

> NPE in CompactionTxnHandler.markFailed()
> ----------------------------------------
>
>                 Key: HIVE-26288
>                 URL: https://issues.apache.org/jira/browse/HIVE-26288
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>            Reporter: László Végh
>            Assignee: Zsolt Miskolczi
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Unhandled exceptions in 
> IMetaStoreClient.findNextCompact(FindNextCompactRequest) handled incorrectly 
> in worker. I these cases the CompcationInfo remains null, but the catch block 
> passes it to CompactionTxnHandler.markFailed() which causes an NPE.



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

Reply via email to