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

[GLUTEN-8268][CORE] Remove preconditions in OverAcquire.repay #8269

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

kecookier
Copy link
Contributor

@kecookier kecookier commented Dec 18, 2024

What changes were proposed in this pull request?

After #8132, overTarget.borrow(overSize) may trigger a retrying spill. If so, it calls OverAcquire.repay() during the spill procedure, which checks Preconditions.checkState(overTarget.usedBytes() == 0);. However, currently, 0 < overTarget.usedBytes() < overSize. We can remove this precondition in repay(), and only keep the precondition in borrow().

(Fixes: #8268)

How was this patch tested?

integration tests

@github-actions github-actions bot added the CORE works for Gluten Core label Dec 18, 2024
Copy link

#8268

Copy link

Run Gluten Clickhouse CI on x86

Copy link
Member

@zhztheplayer zhztheplayer left a comment

Choose a reason for hiding this comment

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

👍

@zhztheplayer zhztheplayer merged commit aff865b into apache:main Dec 19, 2024
47 checks passed
@kecookier kecookier deleted the hotfix-overacquire branch December 19, 2024 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CORE works for Gluten Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[VL] Preconditions fail in OverAcquire.repay() when overTarget.borrow() triggers a retrying spill
2 participants