Skip to content

Go: update admin client - #21135

Merged
JinHai-CN merged 2 commits into
infiniflow:mainfrom
JinHai-CN:fix760
Oct 19, 2026
Merged

JinHai-CN merged 2 commits into
infiniflow:mainfrom
JinHai-CN:fix760

Conversation

@JinHai-CN

Copy link
Copy Markdown
Member

No description provided.

@JinHai-CN
JinHai-CN marked this pull request as ready for review October 19, 2026 06:45
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0f1511da-80e8-40ec-bacc-b055d5bd978a
📥 Commits

Reviewing files that changed from the base of the PR and between 727fec4 and 00ab8e0.

📒 Files selected for processing: 2
  • internal/service/admin_client.go
  • internal/service/admin_client_ee.go

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

The admin client no longer stores clusterInfo. SendHeartbeat enriches the message before JSON serialization and returns an error if enrichment fails. The enterprise implementation returns the supplied message unchanged.

Changes: Admin heartbeat enrichment

Layer / File(s) Summary
Enrich heartbeat messages before serialization
internal/service/admin_client.go, internal/service/admin_client_ee.go
SendHeartbeat calls EnrichMessage before serialization and handles enrichment errors. The enterprise implementation returns the input message and no error. The admin client no longer stores clusterInfo. Several error log messages use lowercase text.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Refactor

Merge Risk: ⚪ Minimal · up to 00ab8

No issue identified here requires a fix before merging.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The pull request has no description. It does not include the required Summary section or explain the purpose and background of the change. Add a Summary section that describes the admin client changes, the problem they solve, and any relevant background context.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the Go admin client as the area changed. It is concise and related to the main change.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2 files.

  • Fix all pre-merge checks with AI
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Tools execution failed with the following error:

Failed to run tools: 14 UNAVAILABLE: Connection dropped

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit watches heartbeats fly,
Enriched before they reach the sky.
No cluster field is kept in store,
The enterprise path returns as before.
The message hops along its way,
Then JSON carries it away.

Comment @coderabbitai help to get the list of available commands.

@JinHai-CN JinHai-CN added ci Continue Integration and removed ci Continue Integration labels Oct 19, 2026
Signed-off-by: Jin Hai <[email protected]>
@JinHai-CN
JinHai-CN merged commit 99f94c6 into infiniflow:main Oct 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant