Add internal check on maxPartitions.