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

Use shrink pools by arbitrator for spill test in hash join uni test #8932

Closed
wants to merge 1 commit into from

Conversation

xiaoxmeng
Copy link
Contributor

@xiaoxmeng xiaoxmeng commented Mar 1, 2024

  • Add flag in OperatorTestBase to configure shared arbitrator to use in unit test
  • Switch to use new api to create query pool and add the memory reclaimer to
    work with shared arbitrator
  • Hash build switch to use test utility to trigger spilling by calling shared arbitrator's
    shrink pools function
  • Improve the shrink pool test utility to ensure the memory pool is always associated
    with its memory manager
  • Turn on shared arbitrator in hash join unit test

Eventually, we will make shared arbitrator the default for unit testing.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 1, 2024
Copy link

netlify bot commented Mar 1, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 644552d
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/65e34c7c6b57e70008e1f362

@xiaoxmeng xiaoxmeng force-pushed the prepare4 branch 2 times, most recently from 405f095 to 0876cbd Compare March 1, 2024 21:04
@facebook-github-bot
Copy link
Contributor

@xiaoxmeng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@xiaoxmeng xiaoxmeng marked this pull request as ready for review March 1, 2024 21:21
@facebook-github-bot
Copy link
Contributor

@xiaoxmeng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@xiaoxmeng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

xiaoxmeng added a commit to xiaoxmeng/velox that referenced this pull request Mar 2, 2024
…acebookincubator#8932)

Summary:
- Add flag in OperatorTestBase to configure shared arbitrator to use in unit test
- Switch to use new api to create query pool and add the memory reclaimer to
   work with shared arbitrator
- Hash build switch to use test utility to trigger spilling by calling shared arbitrator's
   shrink pools function
- Improve the shrink pool test utility to ensure the memory pool is always associated
   with its memory manager
- Turn on shared arbitrator in hash join unit test

Eventually, we will make shared arbitrator the default for unit testing.


Reviewed By: tanjialiang

Differential Revision: D54432889

Pulled By: xiaoxmeng
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54432889

xiaoxmeng added a commit to xiaoxmeng/velox that referenced this pull request Mar 2, 2024
…acebookincubator#8932)

Summary:
- Add flag in OperatorTestBase to configure shared arbitrator to use in unit test
- Switch to use new api to create query pool and add the memory reclaimer to
   work with shared arbitrator
- Hash build switch to use test utility to trigger spilling by calling shared arbitrator's
   shrink pools function
- Improve the shrink pool test utility to ensure the memory pool is always associated
   with its memory manager
- Turn on shared arbitrator in hash join unit test

Eventually, we will make shared arbitrator the default for unit testing.


Reviewed By: tanjialiang

Differential Revision: D54432889

Pulled By: xiaoxmeng
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54432889

xiaoxmeng added a commit to xiaoxmeng/velox that referenced this pull request Mar 2, 2024
…acebookincubator#8932)

Summary:
- Add flag in OperatorTestBase to configure shared arbitrator to use in unit test
- Switch to use new api to create query pool and add the memory reclaimer to
   work with shared arbitrator
- Hash build switch to use test utility to trigger spilling by calling shared arbitrator's
   shrink pools function
- Improve the shrink pool test utility to ensure the memory pool is always associated
   with its memory manager
- Turn on shared arbitrator in hash join unit test

Eventually, we will make shared arbitrator the default for unit testing.


Reviewed By: tanjialiang

Differential Revision: D54432889

Pulled By: xiaoxmeng
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54432889

…acebookincubator#8932)

Summary:
- Add flag in OperatorTestBase to configure shared arbitrator to use in unit test
- Switch to use new api to create query pool and add the memory reclaimer to
   work with shared arbitrator
- Hash build switch to use test utility to trigger spilling by calling shared arbitrator's
   shrink pools function
- Improve the shrink pool test utility to ensure the memory pool is always associated
   with its memory manager
- Turn on shared arbitrator in hash join unit test

Eventually, we will make shared arbitrator the default for unit testing.


Reviewed By: tanjialiang

Differential Revision: D54432889

Pulled By: xiaoxmeng
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54432889

@facebook-github-bot
Copy link
Contributor

@xiaoxmeng merged this pull request in f391c02.

@xiaoxmeng xiaoxmeng deleted the prepare4 branch March 2, 2024 19:57
PHILO-HE added a commit to PHILO-HE/velox that referenced this pull request Mar 4, 2024
Joe-Abraham pushed a commit to Joe-Abraham/velox that referenced this pull request Jun 7, 2024
…acebookincubator#8932)

Summary:
- Add flag in OperatorTestBase to configure shared arbitrator to use in unit test
- Switch to use new api to create query pool and add the memory reclaimer to
   work with shared arbitrator
- Hash build switch to use test utility to trigger spilling by calling shared arbitrator's
   shrink pools function
- Improve the shrink pool test utility to ensure the memory pool is always associated
   with its memory manager
- Turn on shared arbitrator in hash join unit test

Eventually, we will make shared arbitrator the default for unit testing.

Pull Request resolved: facebookincubator#8932

Reviewed By: tanjialiang

Differential Revision: D54432889

Pulled By: xiaoxmeng

fbshipit-source-id: 484ccf356a555be837bfa4fa64fb03e6d16c8cb8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants