Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CELEBORN-1430] TransportClientFactory should check whether handler i…
…s null when creating client ### What changes were proposed in this pull request? `TransportClientFactory` checks whether `handler` is null when creating client. ### Why are the changes needed? There is a case that `cachedClient.isActive()` may return true and may return false when checked for the second time when another thread is closing the channel, which causes that the `handler` may be null. Therefore, `TransportClientFactory` should check whether handler is null when creating client. Backport apache/spark#46506. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? GA. Closes #2517 from SteNicholas/CELEBORN-1430. Authored-by: SteNicholas <programgeek@163.com> Signed-off-by: mingji <fengmingxiao.fmx@alibaba-inc.com>
- Loading branch information