Skip to content

Fix spill crash#10004

Merged
ti-chi-bot[bot] merged 6 commits intopingcap:masterfrom
windtalker:fix_spill_crash
Mar 14, 2025
Merged

Fix spill crash#10004
ti-chi-bot[bot] merged 6 commits intopingcap:masterfrom
windtalker:fix_spill_crash

Conversation

@windtalker
Copy link
Contributor

@windtalker windtalker commented Mar 14, 2025

What problem does this PR solve?

Issue Number: close #9999

Problem Summary:

What is changed and how it works?

The root cause is described in #9999, this pr fix the error and add some check in sort operator to avoid potential undefined fail when the input block of sort is not well generated.

Fix sort spill crash in some corner cases.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Fix sort spill crash in some corner cases

Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-triage-completed release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 14, 2025
Copy link
Contributor

@xzhangxian1008 xzhangxian1008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Mar 14, 2025
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Mar 14, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Lloyd-Pottiger, xzhangxian1008

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added lgtm approved and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Mar 14, 2025
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Mar 14, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-03-14 09:05:23.030067264 +0000 UTC m=+816.714303352: ☑️ agreed by xzhangxian1008.
  • 2025-03-14 09:11:06.731857717 +0000 UTC m=+1160.416093813: ☑️ agreed by Lloyd-Pottiger.

windtalker and others added 2 commits March 14, 2025 17:14
Co-authored-by: JaySon <tshent@qq.com>
@ti-chi-bot ti-chi-bot bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesn't merit a release note. labels Mar 14, 2025
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
@ti-chi-bot ti-chi-bot bot merged commit b3098fd into pingcap:master Mar 14, 2025
5 checks passed
@ti-chi-bot ti-chi-bot bot added the needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. label Mar 18, 2025
windtalker added a commit to windtalker/tiflash that referenced this pull request Mar 18, 2025
close pingcap#9999

Fix sort spill crash in some corner cases.

Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>

Co-authored-by: JaySon <tshent@qq.com>
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-8.5: #10012.

@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-9.0-beta.1: #10014.

@ti-chi-bot ti-chi-bot mentioned this pull request Mar 18, 2025
12 tasks
ti-chi-bot bot pushed a commit that referenced this pull request Mar 18, 2025
close #9999

Fix sort spill crash in some corner cases.

Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>

Co-authored-by: xufei <xufei@pingcap.com>
Co-authored-by: xufei <xufeixw@mail.ustc.edu.cn>
Co-authored-by: JaySon <tshent@qq.com>
ti-chi-bot bot pushed a commit that referenced this pull request Mar 18, 2025
close #9999

Fix sort spill crash in some corner cases.

Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>

Co-authored-by: xufei <xufei@pingcap.com>
Co-authored-by: xufei <xufeixw@mail.ustc.edu.cn>
Co-authored-by: JaySon <tshent@qq.com>
JaySon-Huang added a commit to ti-chi-bot/tiflash that referenced this pull request Mar 31, 2025
close pingcap#9999

Fix sort spill crash in some corner cases.

Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>

Co-authored-by: xufei <xufei@pingcap.com>
Co-authored-by: xufei <xufeixw@mail.ustc.edu.cn>
Co-authored-by: JaySon <tshent@qq.com>
yongman pushed a commit to yongman/tiflash that referenced this pull request Jun 18, 2025
close pingcap#9999

Fix sort spill crash in some corner cases.

Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>

Co-authored-by: xufei <xufei@pingcap.com>
Co-authored-by: xufei <xufeixw@mail.ustc.edu.cn>
Co-authored-by: JaySon <tshent@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. needs-cherry-pick-release-9.0-beta.1 release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filter operator does not return constant column for filter column, which may crash TiFlash when sort spill is triggered.

6 participants