[
https://issues.apache.org/jira/browse/HIVE-26288?focusedWorklogId=795303&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-795303
]
ASF GitHub Bot logged work on HIVE-26288:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 26/Jul/22 15:08
Start Date: 26/Jul/22 15:08
Worklog Time Spent: 10m
Work Description: deniskuzZ commented on code in PR #3451:
URL: https://github.com/apache/hive/pull/3451#discussion_r930086597
##########
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:
why are you passing ci to the log if it's null? `Could not mark failed: {}",
ci` - just remove this part of log
Issue Time Tracking
-------------------
Worklog Id: (was: 795303)
Remaining Estimate: 0h
Time Spent: 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
> Time Spent: 10m
> 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)