qianye1001 commented on PR #1339:
URL:
https://github.com/apache/rocketmq-clients/pull/1339#issuecomment-5290708364
Real first-message send validation was completed against a running RocketMQ
broker with the shaded client built from `d426382a` on Alibaba AJDK 21.
Enabled run (`-Drocketmq.client.jmx.enabled=true`):
- Created a fresh producer and confirmed there was no send metric series
before publishing.
- Invoked synchronous `producer.send(...)` exactly once to `Topic_2B_0000`.
- Broker returned message ID `01DE1499736ADC013E0A905BA000000000`.
- Before producer shutdown, the matching MBean reported:
- `rocketmq_send_cost_time_count = 1`
- `rocketmq_send_cost_time_sum = 12 ms`
- `rocketmq_send_cost_time_bucket_le_inf = 1`
- labels: `topic=Topic_2B_0000`, `invocation_status=success`, and the
producer `client_id`
Default-disabled run (no enabling property):
- Created another fresh producer and invoked synchronous
`producer.send(...)` exactly once.
- Broker returned message ID `01DE1499736ADC04660A905BAF00000000`.
- RocketMQ client MBeans before send: `0`; after send: `0`.
This verifies that the actual first published message is counted when opted
in, and that a real send does not initialize or expose JMX metrics when the
feature remains at its default-off setting.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]