fix estimated timeout bug

This commit is contained in:
obdev
2023-02-13 06:42:05 +00:00
committed by ob-robot
parent df71a667df
commit 8ff89731d7

View File

@ -1369,7 +1369,7 @@ int ObDDLRedefinitionTask::get_estimated_timeout(const ObTableSchema *dst_table_
} else if (OB_FAIL(dst_table_schema->get_all_tablet_and_object_ids(tablet_ids, partition_ids))) {
LOG_WARN("get all tablet and object ids failed", K(ret));
} else {
estimated_timeout = tablet_ids.count() * dst_table_schema->get_column_count() * 1000L; // 1ms for each column
estimated_timeout = tablet_ids.count() * dst_table_schema->get_column_count() * 120L * 1000L; // 120ms for each column
estimated_timeout = max(estimated_timeout, 9 * 1000 * 1000L);
estimated_timeout = min(estimated_timeout, 3600 * 1000 * 1000L);
estimated_timeout = max(estimated_timeout, GCONF.rpc_timeout);