Repository navigation
[bug] proxy: fix transfer connections - #15682
Conversation
|
@volgariver6 Thanks for your contributions! Here are review comments for file pkg/clusterservice/cluster.go: Pull Request Review:Title: [postfix] proxy: fix transfer connectionsProblem 1:The title of the pull request is misleading. It mentions "postfix" and "proxy" which do not seem relevant to the actual changes made in the code. It would be better to have a title that accurately reflects the changes being made, such as "Fix transfer connections in cluster service". Problem 2:The body of the pull request lacks detailed information about the specific changes being made. It would be beneficial to provide a more comprehensive explanation of why these changes are necessary and how they address the issue mentioned in the linked GitHub issue. Problem 3:The changes made in the Problem 4:The use of a hardcoded timeout value ( Problem 5:The error handling in the Problem 6:The lack of unit tests for the newly added Security Issue:The code changes do not seem to introduce any direct security vulnerabilities based on the provided diff. However, it is crucial to ensure that any input validation, error handling, and access control mechanisms are robust to prevent security breaches. Suggestions for Improvement:
By addressing these issues and suggestions, the quality and maintainability of the codebase can be significantly improved. Here are review comments for file pkg/clusterservice/cluster_test.go: Pull Request Review:Title: [postfix] proxy: fix transfer connectionsProblem 1:The title of the pull request does not seem to match the actual changes made in the code. The title mentions "postfix proxy" while the changes provided are related to Suggestion 1:Consider updating the title to accurately reflect the changes made in the code. For example, "Fix transfer connections in cluster_test.go". Problem 2:The body of the pull request lacks detailed information about the specific changes made in the code. It briefly mentions fixing transfer connections and provides a list of changes without explaining the rationale behind each change. This lack of context can make it difficult for reviewers to understand the purpose of the modifications. Suggestion 2:Provide a more detailed description in the pull request body explaining the reasons behind each change. This will help reviewers understand the necessity of the modifications and ensure transparency in the development process. Problem 3:The changes in the Suggestion 3:
Problem 4:The use of Suggestion 4:Consider moving the Problem 5:The changes made in the Suggestion 5:
Overall Suggestions for Optimization:
By addressing the identified problems and implementing the suggested optimizations, the quality and maintainability of the codebase can be significantly improved. Here are review comments for file pkg/clusterservice/types.go: Pull Request Review:Title: [postfix] proxy: fix transfer connectionsIssue(s) Fixed:
Description:
Changes in
|
b297baf to
1bdf47c
Compare
1bdf47c to
3137e15
Compare
1. select all cn servers includes the draining ones 2. should transfer to a different cn server, otherwise, prepare stmt cannot be found. 3. change select sql to set as the method can only execute simple query. 4. fix txn leak when migration 5. fix a sequence issue that the server have to transfer the tunnal after the wait group add one. 6. if connection transfer failed, retry the transfer util there is no cn available.
3137e15 to
cf46b49
Compare
1. select all cn servers includes the draining ones 2. should transfer to a different cn server, otherwise, prepare stmt cannot be found. 3. change select sql to set as the method can only execute simple query. 4. fix txn leak when migration 5. fix a sequence issue that the server have to transfer the tunnal after the wait group add one. 6. if connection transfer failed, retry the transfer util there is no cn available. Approved by: @XuPeng-SH, @zhangxu19830126, @reusee, @triump2020, @daviszhen, @m-schen, @aressu1985
What type of PR is this?
Which issue(s) this PR fixes:
issue https://github.com/matrixorigin/MO-Cloud/issues/3052
What this PR does / why we need it: