MySQL cancel behind pooling proxies: a per-profile choice

Open
#449 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
mariadb, mysql, rust
Domain
cli, database

Research direction

Start by tracing the MySQL and MariaDB cancellation flow and profile settings; the issue names no files, tests, or entry points, so locate those in the repository first. Check how session ownership is confirmed and how cancellation connections are created. Done means profiles can disable server-side cancellation, recognized proxies can suggest that setting, and each run reuses one cancel connection.

Written by the indexing model from the issue text.

Description

enhancement
Need

Since 0.41.2 a MySQL or MariaDB cancel is sent only when the server confirms that the session it reaches is the tab's own; otherwise the tab's connection is closed. One case cannot be confirmed at all: a pooling proxy that forwards connection attributes and shares server connections between clients (for example MySQL Router with connection sharing).

Plan
  • A profile setting to never send a server-side cancel (close the connection instead), for profiles behind such proxies.
  • Recognise the common proxies where they say who they are, and suggest the setting.
  • One cancel connection per run instead of one per attempt.
Dominant language
Rust
Stars
166
Forks
8
Avg merge
4h 24m
Merged PRs (30d)
291

Getting set up

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.

More from DokaDev/datarig

All issues in DokaDev/datarig

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.