-
Notifications
You must be signed in to change notification settings - Fork 430
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
Made the parallel downloads go routines running without synchronization #2287
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2287 +/- ##
==========================================
+ Coverage 71.23% 79.65% +8.42%
==========================================
Files 106 106
Lines 11555 11601 +46
==========================================
+ Hits 8231 9241 +1010
+ Misses 2969 1923 -1046
- Partials 355 437 +82
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
772be33
to
5238338
Compare
# Conflicts: # internal/cache/file/downloader/parallel_downloads_job.go
# Conflicts: # internal/cache/file/downloader/jm_parallel_downloads_test.go
# Conflicts: # internal/cache/file/downloader/jm_parallel_downloads_test.go
5238338
to
39f27aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't reviewed the logic. Just looked at it from a readability angle.
2e4d17d
…on (#2287) * made the parallel go routines running without synchronization # Conflicts: # internal/cache/file/downloader/parallel_downloads_job.go * added print statement * fixing tests # Conflicts: # internal/cache/file/downloader/jm_parallel_downloads_test.go * added changes to update the marker file * reverting the test change * fixing the test * Fixing the integration tests * Fixing the test * releasign the goroutine * fixing tests # Conflicts: # internal/cache/file/downloader/jm_parallel_downloads_test.go * Code review comments * comments fixed * Added unit tests for updateRangeMap method * code review comments * code review comments * changed to require * code review comments * adding comment for public struct
Description
Incase of parallel downloads, we trigger n number of goroutines each downloading xMB and then we wait for xnMB to be downloaded and then make the goroutines fetch another xnMB.
Instead of that, we are making each goroutine continuously download xMB and then next xMB instead of worrying about other goroutines. Which offset to fetch will be passed via channel,.
Link to the issue in case of a bug fix.
NA
Testing details