Skip to content

[GLUTEN-9456][VL] Cancel load earlier in GlutenDirectBufferedInput destructor#11697

Open
rui-mo wants to merge 1 commit intoapache:mainfrom
rui-mo:wip_dbi_2
Open

[GLUTEN-9456][VL] Cancel load earlier in GlutenDirectBufferedInput destructor#11697
rui-mo wants to merge 1 commit intoapache:mainfrom
rui-mo:wip_dbi_2

Conversation

@rui-mo
Copy link
Contributor

@rui-mo rui-mo commented Mar 3, 2026

What changes are proposed in this pull request?

While waiting for a load, a planned load may start unnecessarily. This PR cancels the load as early as possible to minimize wait time.

How was this patch tested?

Verified on CI.

Was this patch authored or co-authored using generative AI tooling?

No

Related issue: #9456


~GlutenDirectBufferedInput() override {
requests_.clear();
for (auto& load : coalescedLoads_) {
Copy link
Member

Choose a reason for hiding this comment

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

Can we unify the two loops into one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I intentionally moved this forward to cancel the load as early as possible, trying to reduce wait time. Thanks.

@rui-mo rui-mo changed the title [VL] Cancel load earlier in GlutenDirectBufferedInput destructor [GLUTEN-9456][VL] Cancel load earlier in GlutenDirectBufferedInput destructor Mar 5, 2026
Copy link
Member

@PHILO-HE PHILO-HE left a comment

Choose a reason for hiding this comment

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

Looks good. I would suggest adding a comment for explanation. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants