[ https://issues.apache.org/jira/browse/HIVE-27893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vikram Ahuja updated HIVE-27893: -------------------------------- Description: Currently there is no Validation for the property hive.metastore.batch.retrieve.max. In case if it is ever set to <= 0, PartitionIterable will throw up NoSuchElement Exception because the batch size will be 0 there. Adding a range validator as the part of this Jira to keep the lower bound value of hive.metastore.batch.retrieve.max to be 1. Also blocking PartitionIterable call if any user/client ever calls the constructor directly with batch size <1. (was: Currently there is no Validation for the property hive.metastore.batch.retrieve.max. In case if it is ever set to <= 0 PartitionIterable will throw up NoSuchElement Exception because the batch size will be 0 there. Adding a range validator as the part of this Jira to keep the lower bound value of hive.metastore.batch.retrieve.max to be 1. Also blocking PartitionIterable call if any user/client ever calls the constructor directly with batch size <1.) > Do not allow user to set hive.metastore.batch.retrieve.max property to < 1 > -------------------------------------------------------------------------- > > Key: HIVE-27893 > URL: https://issues.apache.org/jira/browse/HIVE-27893 > Project: Hive > Issue Type: Bug > Reporter: Vikram Ahuja > Assignee: Vikram Ahuja > Priority: Major > Labels: pull-request-available > > Currently there is no Validation for the property > hive.metastore.batch.retrieve.max. In case if it is ever set to <= 0, > PartitionIterable will throw up NoSuchElement Exception because the batch > size will be 0 there. Adding a range validator as the part of this Jira to > keep the lower bound value of hive.metastore.batch.retrieve.max to be 1. Also > blocking PartitionIterable call if any user/client ever calls the constructor > directly with batch size <1. -- This message was sent by Atlassian Jira (v8.20.10#820010)