Skip to content

Commit

Permalink
Handled different extension unique id
Browse files Browse the repository at this point in the history
Signed-off-by: Owais Kazi <[email protected]>
  • Loading branch information
owaiskazi19 committed Jun 23, 2023
1 parent dd90ecc commit f15e242
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,8 @@ public ConnectionManager.ConnectionValidator connectionValidatorForExtensionConn
) {
return (newConnection, actualProfile, listener) -> {
// We don't validate cluster names to allow for CCS connections.
if (Strings.isNullOrEmpty(threadPool.getThreadContext().getHeader("extension_unique_id"))) {
String currentId = threadPool.getThreadContext().getHeader("extension_unique_id");
if (Strings.isNullOrEmpty(currentId) || !extensionUniqueId.equals(currentId)) {
threadPool.getThreadContext().putHeader("extension_unique_id", extensionUniqueId);
}
handshake(newConnection, actualProfile.getHandshakeTimeout().millis(), cn -> true, ActionListener.map(listener, resp -> {
Expand Down

0 comments on commit f15e242

Please sign in to comment.