Skip to content

Conversation

@vinooganesh
Copy link

@vinooganesh vinooganesh commented Jan 15, 2019

… broadcast object

What changes were proposed in this pull request?

This PR changes the broadcast object in TorrentBroadcast from a strong reference to a weak reference. This allows it to be garbage collected even if the Dataset is held in memory. This is ok, because the broadcast object can always be re-read.

How was this patch tested?

Tested in Spark shell by taking a heap dump, full repro steps listed in https://issues.apache.org/jira/browse/SPARK-25998.

Closes apache#22995 from bkrieger/bk/torrent-broadcast-weak.

Authored-by: Brandon Krieger [email protected]
Signed-off-by: Sean Owen [email protected]

… broadcast object

## What changes were proposed in this pull request?

This PR changes the broadcast object in TorrentBroadcast from a strong reference to a weak reference. This allows it to be garbage collected even if the Dataset is held in memory. This is ok, because the broadcast object can always be re-read.

## How was this patch tested?

Tested in Spark shell by taking a heap dump, full repro steps listed in https://issues.apache.org/jira/browse/SPARK-25998.

Closes apache#22995 from bkrieger/bk/torrent-broadcast-weak.

Authored-by: Brandon Krieger <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
@vinooganesh vinooganesh requested a review from a team January 16, 2019 15:52
Copy link

@rahij rahij left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving since it's already merged upstream

@bulldozer-bot bulldozer-bot bot merged commit 3b1a092 into master Jan 16, 2019
@bulldozer-bot bulldozer-bot bot deleted the vg/SPARK-25998 branch January 16, 2019 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants