Commit 532f506
committed
fix: stabilize ExtensionLifecycleIntegrationTest on Java 8 and 17
Add attachDelayMs=500 and increase checkLines to 10 to match the
established pattern from BTraceFunctionalTests.testExtensionLifecycleClose().
The original checkLines values (2-3) caused the CountDownLatch to hit 0
almost immediately after the BTrace client INFO line, returning from
attach() before the probe had finished executing. The test then triggered
target app shutdown, racing the BTrace output flush. This was
JDK-version-sensitive: Java 8 and 17 lost the race consistently while
Java 11/21/25/26 were fast enough to avoid it.
With checkLines=10 (more than actual output lines), attach() waits up
to the full timeout, giving the probe time to complete. The 500ms attach
delay allows the target JVM to stabilize before probe injection.
<!-- muse-session:impl-20260412-130225 -->1 parent c858269 commit 532f506
1 file changed
Lines changed: 6 additions & 3 deletions
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | | - | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
87 | | - | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| |||
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| 106 | + | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
108 | | - | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
0 commit comments