Skip to content

Commit 7780ed7

Browse files
committed
fix retry limit
1 parent a5fde53 commit 7780ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plugin/DataNodeRequestSender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ void onAfter(DriverCompletionInfo info) {
265265
concurrentRequests.release();
266266
}
267267

268-
if (pendingRetries.isEmpty() == false) {
268+
if (sendingLock.isHeldByCurrentThread()) {
269269
try {
270270
var resolutions = resolveShards(pendingRetries);
271271
for (var entry : resolutions.entrySet()) {

0 commit comments

Comments
 (0)