You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-44937][CORE] Mark connection as timedOut in TransportClient.close
### What changes were proposed in this pull request?
This PR avoids a race condition where a connection which is in the process of being closed could be returned by the TransportClientFactory only to be immediately closed and cause errors upon use.
This race condition is rare and not easily triggered, but with the upcoming changes to introduce SSL connection support, connection closing can take just a slight bit longer and it's much easier to trigger this issue.
Looking at the history of the code I believe this was an oversight in #9853.
### Why are the changes needed?
Without this change, some of the new tests added in #42685 would fail
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Existing tests were run in CI.
Without this change, some of the new tests added in #42685 fail
### Was this patch authored or co-authored using generative AI tooling?
No
Closes#43162 from hasnain-db/spark-tls-timeout.
Authored-by: Hasnain Lakhani <hasnain.lakhani@databricks.com>
Signed-off-by: Mridul Muralidharan <mridul<at>gmail.com>
0 commit comments