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

Mint dotnet failure TaskCanceledException #663

Merged
merged 8 commits into from
Jul 25, 2022

Conversation

ebozduman
Copy link
Collaborator

Fix for sporadic TaskCanceledException during Mint test runs.
The added ConfigureAwait method is for telling the Task to resume itself on any thread that is available instead of waiting for the thread that originally created it. This will speed up the responses and avoid deadlocks and timeouts.
Deadlocks/Timeouts may happen if another long-running process currently has taken over the thread, async/await was waiting for. If that happens, the awaiting task will be stuck waiting for the thread to complete the other long running task/process, which may end up causing timeouts.
This fix still needs to be tested within Mint environment.

@ebozduman
Copy link
Collaborator Author

ebozduman commented Jul 6, 2022

I mistakenly picked up changes from others in files:

  • Minio.Functional.Tests/Minio.Functional.Tests.csproj
  • Minio/Minio.csproj
  • README.md
    I will clean them up and run regitlint for the build failure.

@ebozduman
Copy link
Collaborator Author

There is an incorrect build warning message and the fix for it clashes with regitlint check and causes build to fail. I'm looking into another way to get rid of the warning message.

minio-dotnet/Minio/MinioClient.cs(190,5): warning AsyncFixer01: The method 'httpClientPutAsyncWrapper' do not need to use async/await

@harshavardhana
Copy link
Member

is this PR ready @ebozduman ?

@ebozduman
Copy link
Collaborator Author

Tried to cleanup the sudo but changing the permissions on the source file did not help.

So, it is ready for review now.

Minio.Functional.Tests/Program.cs Outdated Show resolved Hide resolved
@ebozduman
Copy link
Collaborator Author

@harshavardhana
It is ready.

@harshavardhana
Copy link
Member

Please rebase with master

@ebozduman
Copy link
Collaborator Author

Some old code made into this PR. I guess I made some mistake during rebase.
I'll correct those and push it again.

@ebozduman
Copy link
Collaborator Author

@harshavardhana

I think it is ready 'now'.

@harshavardhana harshavardhana merged commit bad67b6 into minio:master Jul 25, 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.

2 participants