Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
current implementation: the below command will throw error
alter table PARTITIONED_T compact 'minor';
for a partitioned table
You must specify a partition to compact for partitioned tables
Problem: One of the problem could be ,let's say a table contains 1000s of partitions and for some issue like files permission automatic compaction will mark all or few partitions as failed and never pick for compaction.
After we see performance getting degraded, we find out that there is a problem in compaction due to some issue.
Now to solve it, we have two approaches, adjust failure thresholds and restart HMS to pick the changes which is not going to work for someone who cannot restart HMS
And the second approach is to execute alter table mentioning each partition
Solution:
In this Jira we are planning to allow alter table command for a partitioned table without specifying any partition name.
Proposed solution is to list all the partitions and find partitions that are eligible to get compacted and put an entry for it in compaction queue
Attachments
Issue Links
- causes
-
HIVE-27848 Refactor Initiator hierarchy into CompactorUtil and fix failure in TestCrudCompactorOnTez
- Resolved
- links to