-
Notifications
You must be signed in to change notification settings - Fork 472
feat(simple reader): Adding support for short reads in Simple Reader #4261
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
Conversation
|
/gemini review |
Summary of ChangesHello @abhishek10004, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request introduces support for handling short reads in MrdSimpleReader. When a short read occurs, the logic attempts to recreate the Multi-Range Downloader (MRD) instance and retries the read for the remaining bytes. This is a robust way to handle potentially stale connections or object generation changes. The implementation is sound and is accompanied by good unit tests covering both success and failure scenarios for the retry logic. I've added a couple of suggestions to improve code conciseness and enhance logging for better debuggability.
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.
Code Review
This pull request adds support for handling short reads in MrdSimpleReader by recreating the MRD pool and retrying the read. The overall approach is sound and the new logic is well-tested with unit tests for both success and failure scenarios of the retry mechanism. I've found one issue regarding error handling when RecreateMRD is called. The error is unintentionally suppressed, which could make debugging issues in production difficult. Please see my detailed comment.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4261 +/- ##
==========================================
- Coverage 83.06% 83.04% -0.03%
==========================================
Files 156 156
Lines 19173 19188 +15
==========================================
+ Hits 15926 15934 +8
- Misses 2654 2659 +5
- Partials 593 595 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hi @raj-prince, @vadlakondaswetha, your feedback is needed to move this pull request forward. This automated reminder was triggered because there has been no activity for over 24 hours. Please provide your input when you have a moment. Thank you! |
Description
Adding support for short reads in Simple Reader
Link to the issue in case of a bug fix.
b/474070396
Testing details
Any backward incompatible change? If so, please explain.