Commit 5f8bcf8
Add timeout to prevent test hanging in testDisconnectWhenConnectionBreak
The test was hanging because testThread.join() was waiting indefinitely.
If disconnect() hangs when ZK connection is broken, the test would wait
forever. This caused the CI test to timeout after 15 minutes.
Fix by:
1. Add 10 second timeout to join() to prevent indefinite wait
2. Make forceful stop conditional - only if thread is still alive
3. Add descriptive assertion message
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6bef6b9 commit 5f8bcf8
File tree
1 file changed
+9
-5
lines changed- helix-core/src/test/java/org/apache/helix/integration
1 file changed
+9
-5
lines changedLines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | | - | |
140 | | - | |
141 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
| |||
0 commit comments