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 progress timing for PutObject_Test9 test (fixes #1078) #1079

Merged
merged 3 commits into from
May 19, 2024

Conversation

ramondeklein
Copy link
Contributor

@ramondeklein ramondeklein commented May 18, 2024

Fixes timing issue when running progress test. I have introduced a SyncProgress class that invokes progress updates synchronously and on the thread that is currently executing. Although not suitable for UI applications (that require UI updates to be done on the main-thread), it's perfectly fine for other situations.

harshavardhana
harshavardhana previously approved these changes May 18, 2024
@ramondeklein ramondeklein linked an issue May 18, 2024 that may be closed by this pull request
Copy link
Collaborator

@ebozduman ebozduman left a comment

Choose a reason for hiding this comment

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

There are 3 more instances of old new Progress(<ProgressReport>(... that need to be replaced with new SyncProgress(<ProgressReport>(...
in 3 files:

  • API.md
  • Program.cs (Functional)
  • FunctionalTest.cs

@ramondeklein
Copy link
Contributor Author

@ebozduman I've fixed the occurences in most places, but I didn't replace the implementation in the API description. I did describe the implications of Progress<T> and when to use SyncProgress<T>. But using SyncProgress<T> isn't always recommended and it may result in other issue.

@harshavardhana harshavardhana merged commit d7eb539 into minio:master May 19, 2024
7 checks passed
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.

PutObject_Test9 sometimes fails during CI/CD build
3 participants