pingcap / pingcap/tiflash

CancelMPPQuery should cancel the on flight coprocessor read for the related mpp query

Open
#4,688 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type/enhancement
Dominant language
C++
Stars
1k
Forks
423
Avg merge
1d 15h
Merged PRs (30d)
24

Description

Enhancement

Currently, TiFlash support CancelMPPQuery, which will cancel a mpp query with specific start_ts, however, it only cancel the mpp task, and will ignore the coprocessor tasks which were triggered by the mpp task due to RemoteRead, this does not make sense since the on flight coprocessor read is meaningless after related mpp query was cancelled, so CancelMPPQuery should also cancel the on flight coprocessor read for the related mpp query.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in dbms/src/Flash/Coprocessor/DAGQueryBlockInterpreter.cpp at the referenced RemoteRead call, then trace how CancelMPPQuery identifies and cancels the MPP task for a start_ts. Determine where related in-flight coprocessor reads are tracked and how cancellation is propagated. Done means cancelling an MPP query also cancels its triggered coprocessor reads.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.