Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-26026

Use the new "REFUSED" compaction state where it makes sense

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              veghlaci05 László Végh
              veghlaci05 László Végh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6.5h
                  6.5h