Skip to content

[fix] make the native collector start: wire up native hints and fix MXBean introspection - #4375

Merged
Duansg merged 2 commits into
apache:masterfrom
Duansg:fix-native-collector
Sep 10, 2026
Merged

[fix] make the native collector start: wire up native hints and fix MXBean introspection#4375
Duansg merged 2 commits into
apache:masterfrom
Duansg:fix-native-collector

Conversation

@Duansg

@Duansg Duansg commented Sep 9, 2026

Copy link
Copy Markdown
Member

What's changed?

The three native collector packages shipped for 1.9.0 do not start at all — the process exits with code 1 right after boot. This fixes the three blockers behind it.

Changes:

  • add src/main/resources/META-INF/native-image/org.apache.hertzbeat/hertzbeat-collector-native/reachability metadata.json (3 Tomcat + 9 Netty entries)
  • add --enable-monitoring=jmxclient to the native profile buildArgs
  • delete src/native/, which nothing in the build has ever referenced

Checklist

  • I have read the Contributing Guide
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

Add or update API

  • I have added the necessary e2e tests and all cases have passed.

@Duansg
Duansg requested a review from zqr10159 September 9, 2026 15:53
@Duansg
Duansg merged commit 3089f72 into apache:master Sep 10, 2026
5 checks passed
@Duansg
Duansg deleted the fix-native-collector branch September 10, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants