Skip to content

Commit

Permalink
[AMORO-3194]improvement: optimize plan log print (#3212)
Browse files Browse the repository at this point in the history
improvement: optimize log print

Co-authored-by: 王涛 <wangtao@HIH-L-10114.local>
(cherry picked from commit 7081bbc)
Signed-off-by: zhoujinsong <zhoujinsong0505@163.com>
  • Loading branch information
2 people authored and zhoujinsong committed Oct 11, 2024
1 parent b233c4c commit a13a95e
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,20 @@ private void triggerAsyncPlanning(
planningTables.remove(tableRuntime.getTableIdentifier());
if (process != null) {
tableQueue.offer(process);
String skipIds =
skipTables.stream()
.map(ServerTableIdentifier::getId)
.sorted()
.map(item -> item + "")
.collect(Collectors.joining(","));
LOG.info(
"Completed planning on table {} with {} tasks with a total cost of {} ms, skipping tables {}",
"Completed planning on table {} with {} tasks with a total cost of {} ms, skipping {} tables,"
+ " id list:{}",
tableRuntime.getTableIdentifier(),
process.getTaskMap().size(),
currentTime - startTime,
skipTables);
skipTables.size(),
skipIds);
} else if (throwable == null) {
LOG.info(
"Skip planning table {} with a total cost of {} ms.",
Expand Down

0 comments on commit a13a95e

Please sign in to comment.