Github user JoshRosen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10705#discussion_r53744546
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/BlockManager.scala 
---
    @@ -318,7 +316,11 @@ private[spark] class BlockManager(
        * may not know of).
        */
       def getMatchingBlockIds(filter: BlockId => Boolean): Seq[BlockId] = {
    -    (blockInfo.asScala.keys ++ 
diskBlockManager.getAllBlocks()).filter(filter).toSeq
    +    val matches =
    +      (blockInfoManager.entries.map(_._1) ++ 
diskBlockManager.getAllBlocks()).filter(filter)
    +    // The `toArray` is necessary here in order to force the list to be 
materialized so that we
    +    // don't try to serialize a lazy iterator when responding to client 
requests.
    +    matches.toArray.toSeq
    --- End diff --
    
    Fixed.


---
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]

Reply via email to