TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
As the log shows, in [2022/09/13 21:37:57.990 +08:00], TiDB received the first error from TiFlash which is other error for mpp stream: From MPP<query:435965467766554652,task:10>: Code: 0, e.displayText() = DB::TiFlashException: Table 72 schema version 2596 newer than query schema version 2595, e.what() = DB::TiFlashException,, but in [2022/09/13 21:37:58.010 +08:00] [INFO] [conn.go:1137] ["command dispatched failed"], the error return to TiDB client is other error for mpp stream: Receive cancel request from TiDB
It should be improved so TiDB can always return the first error it received from TiFlash mpp.
Enhancement
As the log shows, in
[2022/09/13 21:37:57.990 +08:00]
, TiDB received the first error from TiFlash which isother error for mpp stream: From MPP<query:435965467766554652,task:10>: Code: 0, e.displayText() = DB::TiFlashException: Table 72 schema version 2596 newer than query schema version 2595, e.what() = DB::TiFlashException,
, but in[2022/09/13 21:37:58.010 +08:00] [INFO] [conn.go:1137] ["command dispatched failed"]
, the error return to TiDB client isother error for mpp stream: Receive cancel request from TiDB
It should be improved so TiDB can always return the first error it received from TiFlash mpp.