This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new b843b79ddc [fix](tablet clone) fix tablet sched ctx toString cause null exeption (#23731) b843b79ddc is described below commit b843b79ddca7a448b2b2da142a56096f35f71f90 Author: yujun <yu.jun.re...@gmail.com> AuthorDate: Fri Sep 1 15:05:28 2023 +0800 [fix](tablet clone) fix tablet sched ctx toString cause null exeption (#23731) --- .../src/main/java/org/apache/doris/clone/TabletSchedCtx.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/clone/TabletSchedCtx.java b/fe/fe-core/src/main/java/org/apache/doris/clone/TabletSchedCtx.java index 4a3a1a6eb2..5b1ad25e68 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/clone/TabletSchedCtx.java +++ b/fe/fe-core/src/main/java/org/apache/doris/clone/TabletSchedCtx.java @@ -1191,8 +1191,16 @@ public class TabletSchedCtx implements Comparable<TabletSchedCtx> { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("tablet id: ").append(tabletId).append(", status: ").append(tabletStatus.name()); - sb.append(", state: ").append(state.name()).append(", type: ").append(type.name()); + sb.append("tablet id: ").append(tabletId); + if (tabletStatus != null) { + sb.append(", status: ").append(tabletStatus.name()); + } + if (state != null) { + sb.append(", state: ").append(state.name()); + } + if (type != null) { + sb.append(", type: ").append(type.name()); + } if (type == Type.BALANCE && balanceType != null) { sb.append(", balance: ").append(balanceType.name()); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org