We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f88f68d commit 203eb47Copy full SHA for 203eb47
server/src/main/java/org/elasticsearch/action/search/QueryPhaseResultConsumer.java
@@ -434,14 +434,13 @@ private synchronized void onMergeFailure(Exception exc) {
434
}
435
436
private void tryExecuteNext() {
437
+ assert Thread.holdsLock(this);
438
final MergeTask task;
- synchronized (this) {
439
- if (hasFailure() || runningTask.get() != null) {
440
- return;
441
- }
442
- task = queue.poll();
443
- runningTask.set(task);
+ if (hasFailure() || runningTask.get() != null) {
+ return;
444
+ task = queue.poll();
+ runningTask.set(task);
445
if (task == null) {
446
return;
447
0 commit comments