Revert "[MP] Support MP Server restart (#2713)"#2729
Conversation
Summary of ChangesHello, 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 addresses concerns with the previously implemented multi-process server restart support by reverting the entire feature. The core change involves simplifying the client-server communication for cache operations, moving from a detailed Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
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
|
This reverts commit 55622e8. Signed-off-by: ApostaC <yihua98@uchicago.edu>
5a39ed1 to
b9f439d
Compare
There was a problem hiding this comment.
Code Review
This pull request successfully reverts the support for MP Server restart, correctly removing the OperationStatus enum, related logic, and the server restart test file. However, a potential Denial of Service (DoS) vulnerability was identified in the MPCacheEngine.store and MPCacheEngine.retrieve methods in lmcache/v1/multiprocess/server.py. The use of assert statements for validating instance_id from external requests could lead to unhandled exceptions and server crashes, especially if assertions are disabled in production. It is recommended to replace these assertions with explicit error handling and return a failure status to the client. Minor suggestions have also been made to improve logging consistency and fix a typo.
| "store request for request_id=%s", | ||
| request_id, |
There was a problem hiding this comment.
For consistency with the error logging for retrieve requests, consider including the s_result in the log message. This will be helpful for debugging failed store requests.
| "store request for request_id=%s", | |
| request_id, | |
| "store request for request_id=%s, result=%s", | |
| request_id, s_result, |
This reverts commit 55622e8. Signed-off-by: ApostaC <yihua98@uchicago.edu> Signed-off-by: shaoxiawjc <wjc2800@163.com>
This reverts commit 55622e8. Signed-off-by: ApostaC <yihua98@uchicago.edu> Signed-off-by: Aaron Wu <aaron.wu@dell.com>
This reverts commit 55622e8. Signed-off-by: ApostaC <yihua98@uchicago.edu>
This reverts commit 55622e8. Signed-off-by: ApostaC <yihua98@uchicago.edu>
Reverts #2713
See the comments for the reason: #2713 (review)