Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/17325#discussion_r108201923
--- Diff: core/src/main/scala/org/apache/spark/storage/BlockManager.scala
---
@@ -1179,9 +1179,13 @@ private[spark] class BlockManager(
useOffHeap = info.level.useOffHeap,
deserialized = info.level.deserialized,
replication = maxReplicas)
+ // we know we are called as a result of an executor removal, so we
refresh peer cache
+ // this way, we won't try to replicate to a missing executor with a
stale reference
+ val peers = getPeers(true)
--- End diff --
I think we can just call `getPeers(forceFetch = true)`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]