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

Optimize add partitions authorization in HiveMetaStore

    XMLWordPrintableJSON

Details

    Description

      Currently add_partitions() api sends all the partitions (new partitions and existing partitions) that need to be added for authorization, instead, we can optimize this by sending only the new partitions for authorization.

      Impact: Alter table recover partitions collects all the available partitions and sends it to Metastore to check if any new partitions can be added. If all the partitions are sent for authorization irrespective of whether it exists or not, the Authorization service will unnecessarily spend time on authorizing already existing partitions. This can be avoided by only authorizing new partitions.

      Attachments

        Issue Links

          Activity

            People

              hemanth619 Sai Hemanth Gantasala
              hemanth619 Sai Hemanth Gantasala
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: