Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support agg resize callback #8078

Merged
merged 6 commits into from
Sep 14, 2023

Conversation

windtalker
Copy link
Contributor

What problem does this PR solve?

Issue Number: ref #7738

Problem Summary:

What is changed and how it works?

This pr set ResizeCallback for aggregation hash table, so when the hash table need resize in aggregation, it has the chance to check if current hash table is already maked to spill, if yes, it can simply give up resize and release the memory in time.

Check List

Tests

  • Unit test
  • Integration test
    will add integration test in endless
  • 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

None

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 12, 2023
@SeaRise SeaRise self-requested a review September 12, 2023 03:09
@SeaRise SeaRise self-requested a review September 12, 2023 08:26
dbms/src/Interpreters/Aggregator.cpp Outdated Show resolved Hide resolved
dbms/src/Interpreters/Aggregator.cpp Outdated Show resolved Hide resolved
dbms/src/Interpreters/Aggregator.cpp Outdated Show resolved Hide resolved
@windtalker windtalker force-pushed the support_agg_resize_callback branch from 0bb38f2 to 80dc190 Compare September 13, 2023 06:28
@SeaRise SeaRise self-requested a review September 14, 2023 02:40
@windtalker windtalker force-pushed the support_agg_resize_callback branch from 80dc190 to fed8b2e Compare September 14, 2023 02:58
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
dbms/src/Interpreters/Aggregator.cpp Outdated Show resolved Hide resolved
dbms/src/Interpreters/Aggregator.cpp Outdated Show resolved Hide resolved
dbms/src/Interpreters/Aggregator.cpp Outdated Show resolved Hide resolved
Signed-off-by: xufei <[email protected]>
Copy link
Contributor

@SeaRise SeaRise 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 needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Sep 14, 2023
Copy link
Contributor

@yibin87 yibin87 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
Copy link
Contributor

ti-chi-bot bot commented Sep 14, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: SeaRise, yibin87

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

The pull request process is described here

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 and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Sep 14, 2023
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Sep 14, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-09-14 08:36:08.231309148 +0000 UTC m=+160934.198897200: ☑️ agreed by SeaRise.
  • 2023-09-14 09:01:39.613311461 +0000 UTC m=+162465.580899512: ☑️ agreed by yibin87.

@windtalker
Copy link
Contributor Author

/run-all-tests

@ti-chi-bot ti-chi-bot bot merged commit f6e8ffa into pingcap:master Sep 14, 2023
@windtalker windtalker deleted the support_agg_resize_callback branch September 20, 2023 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants