Skip to content

Commit

Permalink
[Refactor] refactor some log (StarRocks#54479)
Browse files Browse the repository at this point in the history
Signed-off-by: sevev <[email protected]>
Signed-off-by: maggie-zhu <[email protected]>
  • Loading branch information
sevev authored and maggie-zhu committed Jan 7, 2025
1 parent c84c1b3 commit af470dc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion be/src/storage/tablet_updates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1796,7 +1796,7 @@ Status TabletUpdates::_apply_normal_rowset_commit(const EditVersionInfo& version
std::string msg_part3 = strings::Substitute("duration:$0ms($1/$2/$3/$4)", t_write - t_start, t_apply - t_start,
t_index - t_apply, t_delvec - t_index, t_write - t_delvec);

bool is_slow = t_apply - t_start > config::apply_version_slow_log_sec * 1000;
bool is_slow = t_write - t_start > config::apply_version_slow_log_sec * 1000;
if (is_slow) {
LOG(INFO) << msg_part1 << msg_part2 << msg_part3;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,9 @@ public int getAsInt() {
fastSchemaEvolution &= processModifyColumn(modifyColumnClause, olapTable, indexSchemaMap);
} else if (alterClause instanceof AddFieldClause) {
if (RunMode.isSharedDataMode() && !Config.enable_alter_struct_column) {
throw new DdlException("Add field for struct column not support shared-data mode so far");
throw new DdlException("Add field for struct column is disable in shared-data mode, " +
"please check `enable_alter_struct_column` in FE configure and `lake_enable_alter_struct` " +
"in all BE/CN configure");
}
if (!fastSchemaEvolution) {
throw new DdlException("Add field for struct column require table enable fast schema evolution");
Expand All @@ -1910,7 +1912,9 @@ public int getAsInt() {
processAddField((AddFieldClause) alterClause, olapTable, indexSchemaMap, id, newIndexes);
} else if (alterClause instanceof DropFieldClause) {
if (RunMode.isSharedDataMode() && !Config.enable_alter_struct_column) {
throw new DdlException("Drop field for struct column not support shared-data mode so far");
throw new DdlException("Drop field for struct column is disable in shared-data mode, " +
"please check `enable_alter_struct_column` in FE configure and `lake_enable_alter_struct` " +
"in all BE/CN configure");
}
if (!fastSchemaEvolution) {
throw new DdlException("Drop field for struct column require table enable fast schema evolution");
Expand Down
4 changes: 2 additions & 2 deletions fe/fe-core/src/main/java/com/starrocks/catalog/OlapTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -732,8 +732,8 @@ public void rebuildFullSchema() {
maxColUniqueId = Math.max(maxColUniqueId, column.getMaxUniqueId());
}
setMaxColUniqueId(maxColUniqueId);
LOG.info("after rebuild full schema. table {}, schema: {}, max column unique id: {}",
name, fullSchema, maxColUniqueId);
LOG.debug("after rebuild full schema. table {}, schema: {}, max column unique id: {}",
name, fullSchema, maxColUniqueId);
}

public boolean deleteIndexInfo(String indexName) {
Expand Down

0 comments on commit af470dc

Please sign in to comment.