luozenglin opened a new issue, #23267: URL: https://github.com/apache/doris/issues/23267
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Version 1.2 ### What's Wrong? ``` mysql> show query profile '/755e1777762d46b2-845165d7473b4acf'; ERROR 1105 (HY000): errCode = 2, detailMessage = failed to get fragment profile tree. err: errCode = 2, detailMessage = Invalid instance profile, without sender or exec node: Instance 755e1777762d46b2-845165d7473b4ad0 (host=TNetworkAddress(hostname:xxxx, port:9869)): ``` ### What You Expected? as Expected ### How to Reproduce? 1fe3be ``` select * from tpch.lineitem limit 11; show query profile '/'; show query profile '/755e1777762d46b2-845165d7473b4acf'; ``` ### Anything Else? some log ``` 2023-08-21 16:35:45,737 DEBUG (mysql-nio-pool-7|663) [Coordinator$BackendExecState.cancelFragmentInstance():2166] cancelRemoteFragments initiated=true done=true hasCanceled=false backend: 10007,, fragment instance id=eb9f9219f3784d4d-be83f04aaa0e6ca5, reason: LIMIT_REACH 80102 2023-08-21 16:35:45,737 DEBUG (mysql-nio-pool-7|663) [Coordinator$BackendExecState.cancelFragmentInstance():2166] cancelRemoteFragments initiated=true done=true hasCanceled=false backend: 10007,, fragment instance id=eb9f9219f3784d4d-be83f04aaa0e6ca2, reason: LIMIT_REACH 80103 2023-08-21 16:35:45,737 DEBUG (mysql-nio-pool-7|663) [Coordinator$BackendExecState.cancelFragmentInstance():2166] cancelRemoteFragments initiated=true done=false hasCanceled=false backend: 100055 , fragment instance id=eb9f9219f3784d4d-be83f04aaa0e6ca3, reason: LIMIT_REACH 2023-08-21 16:35:45,739 INFO (mysql-nio-pool-7|663) [Coordinator.cancelInternal():974] unfinished instance: eb9f9219f3784d4d-be83f04aaa0e6ca4 80276 2023-08-21 16:35:45,739 DEBUG (mysql-nio-pool-7|663) [QeProcessorImpl.unregisterQuery():131] deregister query id eb9f9219f3784d4d-be83f04aaa0e6ca1 80277 2023-08-21 16:35:45,739 DEBUG (thrift-server-pool-9|274) [FeServer.lambda$start$0():56] receive request for reportExecStatus 80278 2023-08-21 16:35:45,739 INFO (thrift-server-pool-9|274) [QeProcessorImpl.reportExecStatus():184] ReportExecStatus(): fragment_instance_id=eb9f9219f3784d4d-be83f04aaa0e6ca4, query id=eb9f9219f3788 4d4d-be83f04aaa0e6ca1, backend num: 3, ip: TNetworkAddress(hostname:10.81.85.90, port:42729) 2023-08-21 16:35:45,740 INFO (thrift-server-pool-9|274) [QeProcessorImpl.reportExecStatus():198] ReportExecStatus() runtime error, query eb9f9219f3784d4d-be83f04aaa0e6ca1 with type SELECT does not exist ``` The reason is that fe cancel executed profileDoneSignal.countDownToZero(new Status()), resulting in fe did not wait for the profile from be and QeProcessorImpl.INSTANCE.unregisterQuery, which logged off the query ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
