[ https://issues.apache.org/jira/browse/HIVE-26026?focusedWorklogId=747144&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-747144 ]
ASF GitHub Bot logged work on HIVE-26026: ----------------------------------------- Author: ASF GitHub Bot Created on: 24/Mar/22 11:46 Start Date: 24/Mar/22 11:46 Worklog Time Spent: 10m Work Description: veghlaci05 commented on a change in pull request #3126: URL: https://github.com/apache/hive/pull/3126#discussion_r834217245 ########## File path: ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Worker.java ########## @@ -343,7 +343,7 @@ protected Boolean findNextCompactionAndExecute(boolean collectGenericStats, bool findNextCompactRequest.setWorkerId(workerName); findNextCompactRequest.setWorkerVersion(runtimeVersion); ci = CompactionInfo.optionalCompactionInfoStructToInfo(msc.findNextCompact(findNextCompactRequest)); - LOG.debug("Processing compaction request " + ci); + LOG.info("Processing compaction request {}", ci); Review comment: During a log analysis with @pvary we realized that there's no info level log entry at the beginning of the worker process, which makes a bit more difficult to track down compactions which failed on the checks and did not reach the ` LOG.info("Starting " + ci.type.toString() + " compaction for " + ci.getFullPartitionName() + ", id:" + ci.id + " in " + compactionTxn + " with compute stats set to " + computeStats); ` line. So we agreed to change this to info level. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 747144) Time Spent: 4h (was: 3h 50m) > Use the new "REFUSED" compaction state where it makes sense > ----------------------------------------------------------- > > Key: HIVE-26026 > URL: https://issues.apache.org/jira/browse/HIVE-26026 > Project: Hive > Issue Type: Improvement > Components: Hive > Reporter: László Végh > Assignee: László Végh > Priority: Major > Labels: pull-request-available > Time Spent: 4h > Remaining Estimate: 0h > > The > org.apache.hadoop.hive.ql.txn.compactor.Worker#findNextCompactionAndExecute > method does several checks (The table/partition exists, is not sorted, there > are enough files to compact, etc.) before it actually executes the compaction > request. If the compaction request fails on any of these checks, it is put to > "SUCCEEDED" state which is often misleading for users. SHOW COMPACTIONS will > show these requests as succeeded without an error, while the table is not > compacted at all. > For these cases, the state should be "REFUSED" instead of "SUCCEEDED" among > with the appropriate error message. -- This message was sent by Atlassian Jira (v8.20.1#820001)