spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacek Laskowski <>
Subject BlockManager and ShuffleManager = can getLocalBytes be ever used for shuffle blocks?
Date Thu, 16 Apr 2020 11:25:49 GMT

While trying to understand the relationship of BlockManager
and ShuffleManager I found that ShuffleManager is used for shuffle block
data [1] (and that makes sense).

What I found quite surprising is that BlockManager can call getLocalBytes
for non-shuffle blocks that in turn does...fetching shuffle blocks (!) [2].

That begs the question, who could want this? In other words, what other
components would want to call BlockManager.getLocalBytes for shuffle
blocks? The only caller is TorrentBroadcast which is not for shuffle
blocks, is it?

In other words, getLocalBytes should NOT be bothering itself with fetching
local shuffle blocks as that's a responsibility of someone else,
i.e. ShuffleManager.

Is this correct?

I'd appreciate any help you can provide so I can understand the Spark core
better. Thanks!


Jacek Laskowski
"The Internals Of" Online Books <>
Follow me on


View raw message