You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix rocketmq healthCheck re-entry when initialization exceeds curl timeout
Set consumerStarted flag at the start of the init block to prevent
concurrent healthCheck requests from re-entering. The initialization
(producer start + send + consumer start) can exceed curl's 3s timeout,
causing the health check to retry and re-enter the block repeatedly.
Copy file name to clipboardExpand all lines: test/plugin/scenarios/rocketmq-5-grpc-scenario/src/main/java/test/apache/skywalking/apm/testcase/rocketmq/client/java/controller/CaseController.java
Copy file name to clipboardExpand all lines: test/plugin/scenarios/rocketmq-scenario/src/main/java/test/apache/skywalking/apm/testcase/rocketmq/controller/CaseController.java
+35-27Lines changed: 35 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -77,34 +77,42 @@ public String testcase() {
77
77
@ResponseBody
78
78
publicStringhealthCheck() throwsException {
79
79
if (!consumerStarted) {
80
-
// Send a probe message to ensure the topic exists before consumer starts.
81
-
// Without this, the consumer's rebalance finds no queues and it would need
82
-
// another full rebalance cycle (~20s) after the topic is eventually created.
0 commit comments