Skip to content

feat: 图表分析路由选取优先级调整 --story=137168746 - #11990

Open
JunLong-Lin wants to merge 1 commit into
TencentBlueKing:masterfrom
JunLong-Lin:feat/analysiss_router/#1010158081137168746
Open

feat: 图表分析路由选取优先级调整 --story=137168746#11990
JunLong-Lin wants to merge 1 commit into
TencentBlueKing:masterfrom
JunLong-Lin:feat/analysiss_router/#1010158081137168746

Conversation

@JunLong-Lin

@JunLong-Lin JunLong-Lin commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

已经接入 Doris 存储集群,并且同时存在历史遗留配置(support_doris + doris_table_id)的情况下:
索引组保持不变:优先走 analysis 路由
普通索引集:优先走 默认(bklog_indxe_set_xxx) 路由 

@JunLong-Lin JunLong-Lin added feat A new feature. Correlates with MINOR in SemVer project/log project log labels Aug 14, 2026
@JunLong-Lin

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4cf0962a3f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +50 to 51
if is_native_doris and (not index_set_obj.is_group or not is_legacy_doris):
self.table_id = f"bklog_index_set_{index_info['index_set_id']}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Route tagged native Doris indexes away from legacy tables

For a non-group index that is now native Doris but still retains the internal Doris tag together with support_doris and doris_table_id, this condition selects the default route. However, BaseIndexSetHandler.get_index_set_table_info_list() treats that tag as a manual Doris connection and registers the default route exclusively against the legacy doris_table_id (bklog/apps/log_search/handlers/index_set.py:1938-1955), rather than the native LogIndexSetData storage. Consequently, this migrated configuration continues querying the legacy table—and may return stale or incorrect results—despite the intended native-storage precedence; the route-generation logic or this selection must account for the retained tag.

Useful? React with 👍 / 👎.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.28%. Comparing base (3068080) to head (4cf0962).
⚠️ Report is 6717 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11990      +/-   ##
==========================================
+ Coverage   54.28%   61.28%   +7.00%     
==========================================
  Files         807      926     +119     
  Lines       45868    67352   +21484     
==========================================
+ Hits        24901    41280   +16379     
- Misses      20967    26072    +5105     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat A new feature. Correlates with MINOR in SemVer project/log project log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants