You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ExchangeSender_32 and ExchangeSender_20 are actually two standalone mpp sub-queries, and each of the subqueries in TiDB side is handled by a mpp_gather, so this query will generate mpp tasks that belongs two different mpp_gather. From tidb's point of view, different mpp_gather has its own lifecycle, it is possible that TiDB wants to cancel one of the mpp_gather's execution while keep other mpp_gather's execution un-affected. For example, if Limit_25 has enough input, TiDB will cancel the mpp_gather that opens ExchangeSender_32, and of cause, TiDB does not want ExchangeSender_20 to be affected by that cancel(After #7589, it almost 100% sure that ExchangeSender_20 will be affected by that cancel). This means when TiDB send a CancelMPPQuery request, it actually wants to cancel all the mpp tasks that belongs to a specific mpp_gather. After pingcap/tidb#44697, TiDB already set a meaningfull value of gather_id in mpp::TaskMeta, it's time for TiFlash to support MPPGather' level's cancel
The text was updated successfully, but these errors were encountered:
Enhancement
Sometimes in TiDB a query will generate multiple standalone "mpp sub-queries", for example:
ExchangeSender_32
andExchangeSender_20
are actually two standalone mpp sub-queries, and each of the subqueries in TiDB side is handled by ampp_gather
, so this query will generate mpp tasks that belongs two differentmpp_gather
. From tidb's point of view, differentmpp_gather
has its own lifecycle, it is possible that TiDB wants to cancel one of thempp_gather
's execution while keep othermpp_gather
's execution un-affected. For example, ifLimit_25
has enough input, TiDB will cancel the mpp_gather that opensExchangeSender_32
, and of cause, TiDB does not wantExchangeSender_20
to be affected by that cancel(After #7589, it almost 100% sure thatExchangeSender_20
will be affected by that cancel). This means when TiDB send aCancelMPPQuery
request, it actually wants to cancel all the mpp tasks that belongs to a specificmpp_gather
. After pingcap/tidb#44697, TiDB already set a meaningfull value ofgather_id
inmpp::TaskMeta
, it's time for TiFlash to supportMPPGather
' level's cancelThe text was updated successfully, but these errors were encountered: