-
Notifications
You must be signed in to change notification settings - Fork 5k
merge: from 3.3.6 to main #33255
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
merge: from 3.3.6 to main #33255
Conversation
Summary of ChangesHello @guanshengliang, 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 focuses on enhancing the robustness and diagnostic capabilities of the system by introducing a new error code for missing metrics, improving error logging with more contextual information, and refining the error handling within the metric collection framework. Additionally, the query optimizer's logic for handling aggregate functions has been made more precise, and associated test cases have been updated to reflect these changes. 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 several improvements. It adds a new error code for when no monitoring metrics exist and enhances error logging in the monitoring components to provide more context, which is great for debugging. A complex conditional in the query planner has been refactored, significantly improving code readability. The changes also include new test cases and some code cleanup. My only concern is that the documentation check for the new error code is being bypassed in a test file, which should be addressed to ensure documentation stays up-to-date.
| '0x80007004', '0x80007005', '0x80007006', '0x80007007', '0x80007008', '0x80007009', '0x8000700A', '0x8000700B', '0x8000700C', '0x8000700D', | ||
| '0x8000700E', '0x8000700F', '0x80007010', '0x80007011', '0x80007012', '0x80007013', '0x80007014', '0x80002694', '0x80002695', '0x80007015', | ||
| '0x800004B4', '0x800004B5', '0x800004B6'] | ||
| '0x800004B4', '0x800004B5', '0x800004B6', '0x80006001'] |
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.
The new error code 0x80006001 (TSDB_CODE_UTIL_NO_METRIC_EXIST) has been added to the ignoreCodes list. This bypasses the check that ensures all error codes are properly documented. While this might be a temporary measure, it's best practice to document the new error code in docs/en/14-reference/09-error-code.md and docs/zh/14-reference/09-error-code.md and remove it from this ignore list to maintain documentation consistency.
Description
Please briefly describe the code changes in this pull request.
Checklist
Please check the items in the checklist if applicable.