Skip to content

Commit 04d7f6b

Browse files
committed
Ensure notify when proxy connections disconnect (#65697)
TransportService doesn't respond to the pending requests of proxy connections when the underlying connections get disconnected because proxy connections do not override the getCacheKey method. Some CCS requests would never be completed because of this bug.
1 parent 0cd5506 commit 04d7f6b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server/src/main/java/org/elasticsearch/transport/RemoteClusterConnection.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,11 @@ public boolean isClosed() {
371371
public Version getVersion() {
372372
return proxyConnection.getVersion();
373373
}
374+
375+
@Override
376+
public Object getCacheKey() {
377+
return proxyConnection.getCacheKey();
378+
}
374379
}
375380

376381
Transport.Connection getConnection() {

0 commit comments

Comments
 (0)