[fix](auto-partition) Fix concurrent load same value of auto partition #31107

This commit is contained in:
zclllyybb
2024-02-19 18:32:53 +08:00
committed by yiguolei
parent 2bb184f43b
commit 3f9b597b6b

View File

@ -3270,7 +3270,6 @@ public class FrontendServiceImpl implements FrontendService.Iface {
// check partition's number limit.
int partitionNum = olapTable.getPartitionNum() + addPartitionClauseMap.size();
if (partitionNum > Config.max_auto_partition_num) {
olapTable.writeUnlock();
String errorMessage = String.format(
"create partition failed. partition numbers %d will exceed limit variable "
+ "max_auto_partition_num %d",