Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
Impala 2.8.0
-
None
Description
CatalogOpExecutor.alterTableAddPartitions() should adhere to MAX_PARTITION_UPDATES_PER_RPC limit when making RPC calls to the HMS. We've seen problems in the past when updating a lot of metadata in one RPC to the HMS.
Note that getPartitionsFromHms() and alterTableCachePartitions() methods called from alterTableAddPartitions() are also affected.
Currently it is enforced during analysis (in AlterTableAddPartitionStmt.analyze()) that one ALTER TABLE ADD PARTITION statement cannot add more than MAX_PARTITION_UPDATES_PER_RPC partitions. This check can be removed after fixing the RPC calls.