Skip to content

Commit

Permalink
Merge pull request #3823 from actiontech/inner-2361&2356
Browse files Browse the repository at this point in the history
[inner-2361&2356] fix: the results of show trace are incomplete
  • Loading branch information
wenyh1 authored Sep 20, 2023
2 parents f6c328d + 00b911b commit e4da171
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public void startHeartbeat() {

public void startDelayDetection() {
for (PhysicalDbInstance dbInstance : allSourceMap.values()) {
if (dbInstance.delayDetection.isStop()) {
if (dbInstance.delayDetection != null && dbInstance.delayDetection.isStop()) {
dbInstance.delayDetection = new DelayDetection(dbInstance);
}
dbInstance.startDelayDetection();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public void execute(byte[] originPacket) {

write(originPacket, WriteFlags.QUERY_END);
}

public void execute(BusinessService service, String sql) {
execute(service, sql, false);
}
Expand Down Expand Up @@ -419,6 +420,7 @@ protected boolean innerRelease() {
}
complexQuery = false;
attachment = null;
traceRouteKey = null;
statusSync = null;
isDDL = false;
testing = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static void recoverSingleThread(String threadName) throws Exception {
}
break;
default:
throw new Exception("The recover operation of threadPool[" + threadName + "] is not supported");
throw new Exception("The recover operation of thread[" + threadName + "] is not supported");
}
} else {
throw new Exception("The recover operation of thread[" + threadName + "] is not supported");
Expand Down

0 comments on commit e4da171

Please sign in to comment.