Skip to content

Conversation

@nvartolomei
Copy link
Contributor

This doesn't introduce much change in behaviour as the tasks were shut down (usually) by AbortOnDropMany anyway.

@github-actions github-actions bot added the core Core DataFusion crate label Aug 26, 2022
output.send(item).await.ok();
// there is no place to send the error.
if let Err(_) = output.send(item).await {
return;
Copy link
Member

Choose a reason for hiding this comment

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

The change looks reasonable, but I think we should at least log a debug or warning message rather than silently consuming the error.

Copy link
Contributor

Choose a reason for hiding this comment

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

in #3350

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

I agree this looks like a nice change -- it will make cancelling a plan more efficient (the execution will be stopped sooner). Thanks @nvartolomei

cc @crepererum who added AbortOnDropMany initially

@alamb
Copy link
Contributor

alamb commented Sep 3, 2022

Thanks @nvartolomei -- this looks like a very nice improvement so I will merge it in and add a log message as a follow on PR

@alamb alamb merged commit 7a53872 into apache:master Sep 3, 2022
@alamb alamb changed the title Return from task execution if send fails as there is nothing more to do Return from task execution if send fails as there is nothing more to do (faster cancel / limit) Sep 3, 2022
@ursabot
Copy link

ursabot commented Sep 3, 2022

Benchmark runs are scheduled for baseline = 93a95c2 and contender = 7a53872. 7a53872 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ec2-t3-xlarge-us-east-2] ec2-t3-xlarge-us-east-2
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on test-mac-arm] test-mac-arm
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-i9-9960x] ursa-i9-9960x
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-thinkcentre-m75q] ursa-thinkcentre-m75q
Buildkite builds:
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

@alamb alamb mentioned this pull request Sep 3, 2022
kmitchener pushed a commit to kmitchener/arrow-datafusion that referenced this pull request Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants