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

Fix failed lro cases #2

Closed
wants to merge 6 commits into from

Conversation

MaryGao
Copy link

@MaryGao MaryGao commented Dec 7, 2022

The original pr is Azure#1586 and it has below ci failures:
https://dev.azure.com/azure-sdk/public/_build/results?buildId=2034536&view=logs&j=71cc2e7d-6454-5bf0-71b5-f1eef07a6c23&t=f2857310-5d68-5640-1409-0ba88dcfe076&l=1299

I fixed this failures by removing the poll() call, https://github.com/joheredi/autorest.typescript/pull/2/files#diff-30776bf0dca3d9ed8226f91676dbb870808482bad53e453d798160add8cca23e.

Because I notice it would introduce one more http request which is not expected when we are in sync way to handle LRO request. But I am not sure this is correct or not when we call createHttpPoller.

@deyaaeldeen Could you help explain the differences between poller.poll(), poller.pollUntilDone and review this change?

await poller.poll();

After this fix the ci passed: Azure#1689.

/cc @qiaozha

@MaryGao MaryGao changed the base branch from main to legacy-lro December 7, 2022 08:57
@MaryGao
Copy link
Author

MaryGao commented Dec 8, 2022

After confirmed with Deya this failure is caused by Azure/azure-sdk-for-js#24159. We couldn't remove the poll() call. So I close this pr.

@MaryGao MaryGao closed this Dec 8, 2022
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.

1 participant