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

Slow dropping of partitions caused by full listing of storage descriptors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0
    • Metastore
    • None

    Description

      To determine if a column descriptor is unused, we call listStorageDescriptorsWithCD(), which may return a big list of SDs. This can severely slow down dropping partitions.

      We can add a maximum number of SDs to return, and just ask for 1 SD, since we are just doing an existential check.

      Attachments

        1. HIVE-2368.1.patch
          2 kB
          Sohan Jain

        Issue Links

          Activity

            People

              sohanjain Sohan Jain
              sohanjain Sohan Jain
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: