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

Query: Fixes order by logic to throw original exception instead of AggregateException #2708

Conversation

askazakov
Copy link
Contributor

Description

I expect OperationCancelledException not AggregateException If operation is cancelled

  • use GetAwaiter() to avoid AggregateException
  • pass CancellationToken to Continue to avoid start continuation if not needed
  • fix typo

Type of change

  • [] Bug fix (non-breaking change which fixes an issue)

- pass CancellationToken to Continue to avoid start continuation if not needed
- fix typo
@j82w j82w changed the title throw OperationCancelledException instead of AggregateException Query: Fixes order by logic to throw original exception instead of AggregateException Sep 8, 2021
@j82w
Copy link
Contributor

j82w commented Sep 8, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

j82w
j82w previously approved these changes Sep 8, 2021
@j82w
Copy link
Contributor

j82w commented Sep 8, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

TryCatch<QueryPage> monadicQueryPage = antecedent.Result;
if (monadicQueryPage.Failed)
{
Console.WriteLine(this.SqlQuerySpec);
Copy link
Member

Choose a reason for hiding this comment

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

👀

@j82w
Copy link
Contributor

j82w commented Sep 9, 2021

Just waiting for a fix to go in then I'll start the test run.

@j82w
Copy link
Contributor

j82w commented Sep 9, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@j82w j82w merged commit e3c08ac into Azure:master Sep 9, 2021
@askazakov askazakov deleted the operation-cancelled-exception-instead-of-aggregate branch September 10, 2021 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants