[ 
https://issues.apache.org/jira/browse/SPARK-31689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chandni Singh updated SPARK-31689:
----------------------------------
    Description: 
The {{localBlocks}} is created and used in the {{initialize}} method of 
ShuffleBlockFetchIterator but is never used after that. 
 It can be local to the initialize method instead of being a field in the 
{{ShuffleBlockFetchIterator}} instance. It holds on to memory until iterator 
instance is alive which is unnecessary.

  was:
The {{localBlocks}} is created and used in the {{initialize}} method of 
ShuffleBlockFetchIterator but is never used after that. 
It can be local to the initialize method instead of being a field in the 
{{ShuffleBlockFetchIterator}} instance. It hold son to memory until iterator 
instance is alive which is unnecessary.


> ShuffleBlockFetchIterator keeps localBlocks in its memory even though it 
> never uses it
> --------------------------------------------------------------------------------------
>
>                 Key: SPARK-31689
>                 URL: https://issues.apache.org/jira/browse/SPARK-31689
>             Project: Spark
>          Issue Type: Bug
>          Components: Shuffle, Spark Core
>    Affects Versions: 2.4.5
>            Reporter: Chandni Singh
>            Priority: Minor
>
> The {{localBlocks}} is created and used in the {{initialize}} method of 
> ShuffleBlockFetchIterator but is never used after that. 
>  It can be local to the initialize method instead of being a field in the 
> {{ShuffleBlockFetchIterator}} instance. It holds on to memory until iterator 
> instance is alive which is unnecessary.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to