Commit 1b2078b
committed
Fix rocketmq-5-grpc-scenario: avoid curl timeout by not joining consumer threads
The testcase() method was joining consumer threads that could block for
10-30 seconds, exceeding curl's 3-second timeout. This caused the main
HTTP entry span to never complete, so no producer segments were reported.
Fix: move PushConsumer startup to healthCheck() for early rebalance, and
start SimpleConsumer threads without joining so testcase() returns fast.
Background consumers complete within the 5-second post-curl sleep window.
Verified locally: both 5.1.1 and 5.1.4 pass with all expected segments.1 parent 067f167 commit 1b2078b
1 file changed
Lines changed: 14 additions & 18 deletions
File tree
- test/plugin/scenarios/rocketmq-5-grpc-scenario/src/main/java/test/apache/skywalking/apm/testcase/rocketmq/client/java/controller
Lines changed: 14 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 56 | | |
64 | 57 | | |
65 | 58 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
72 | 64 | | |
73 | 65 | | |
74 | 66 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
80 | 70 | | |
81 | 71 | | |
82 | 72 | | |
| |||
90 | 80 | | |
91 | 81 | | |
92 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
93 | 89 | | |
94 | 90 | | |
95 | 91 | | |
| |||
0 commit comments