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

Implement a blocking version of a command to compact

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • Transactions

    Description

      currently

      alter table AcidTable compact 'major'
      

      is supported which enqueues a msg to compact.

      Would be nice for testing and script building to support

       
      alter table AcidTable compact 'major' blocking
      

      perhaps another variation is to block until either compaction is done or until cleaning is finished.

      DDLTask.compact() gets a request id back so it can then just block and wait for it using some new API

      may also be useful to let users compact all partitions but only if a separate queue has been set up for compaction jobs.
      The later is because with a 1M partition table, this may create very many jobs and saturate the cluster.
      This probably requires HIVE-12376 to make sure the compaction queue does the throttling, not the number of worker threads

      Attachments

        1. HIVE-15920.01.patch
          12 kB
          Eugene Koifman
        2. HIVE-15920.02.patch
          12 kB
          Eugene Koifman

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ekoifman Eugene Koifman Assign to me
            ekoifman Eugene Koifman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment