mirror of https://github.com/apache/lucene.git
Fix broken loop in TestDocumentsWriterStallControl.assertState() (#13062)
The loop in assertState prematurely exists due to a broken break steament. Closes #13061
This commit is contained in:
parent
ed826f26df
commit
3d47a0d5c2
|
@ -174,8 +174,7 @@ public class TestDocumentsWriterStallControl extends LuceneTestCase {
|
|||
DocumentsWriterStallControl ctrl)
|
||||
throws InterruptedException {
|
||||
int millisToSleep = 100;
|
||||
while (true) {
|
||||
if (ctrl.hasBlocked() && ctrl.isHealthy()) {
|
||||
while (ctrl.hasBlocked() && ctrl.isHealthy()) {
|
||||
for (int n = numReleasers + numStallers; n < numReleasers + numStallers + numWaiters; n++) {
|
||||
if (ctrl.isThreadQueued(threads[n])) {
|
||||
if (millisToSleep < 60000) {
|
||||
|
@ -187,10 +186,6 @@ public class TestDocumentsWriterStallControl extends LuceneTestCase {
|
|||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue