Skip to content

Conversation

@jonvex
Copy link
Contributor

@jonvex jonvex commented Mar 7, 2024

Change Logs

Collect of all the write statuses will be a ton of data on the driver. We can avoid this because the data is parallelized again immediately after the collect.
This is in the original feature pr: #6046

Impact

Prevent OOM and speed up row writer clustering

Risk level (write none, low medium or high below)

low

Documentation Update

none

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@github-actions github-actions bot added the size:S PR with lines of changes in (10, 100] label Mar 7, 2024
@jonvex jonvex requested a review from nsivabalan March 7, 2024 19:40
@nsivabalan nsivabalan changed the title [HUDI-7489] get rid of collect in row writer clustering [HUDI-7489] Avoid collecting WriteStatus to driver in row writer code path Mar 7, 2024
Copy link
Contributor

@nsivabalan nsivabalan left a comment

Choose a reason for hiding this comment

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

Can you add reference to when this was added (offending commit) in the PR desc.

}

writer.getWriteStatuses.asScala.iterator
}), SQLConf.get).collect()
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch ~

@apache apache deleted a comment from hudi-bot Mar 8, 2024
@apache apache deleted a comment from hudi-bot Mar 8, 2024
@apache apache deleted a comment from hudi-bot Mar 8, 2024
@jonvex
Copy link
Contributor Author

jonvex commented Mar 11, 2024

@hudi-bot run azure

@apache apache deleted a comment from hudi-bot Mar 11, 2024
@jonvex
Copy link
Contributor Author

jonvex commented Mar 11, 2024

image
azure passing

@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@danny0405 danny0405 merged commit ee11b9c into apache:master Mar 12, 2024
xushiyan pushed a commit that referenced this pull request Apr 18, 2024
… path (#10836)

* get rid of collect in row writer clustering

* fix race condition

* add logging

---------

Co-authored-by: Jonathan Vexler <=>
xushiyan pushed a commit that referenced this pull request Apr 18, 2024
… path (#10836)

* get rid of collect in row writer clustering

* fix race condition

* add logging

---------

Co-authored-by: Jonathan Vexler <=>
yihua pushed a commit that referenced this pull request May 14, 2024
… path (#10836)

* get rid of collect in row writer clustering

* fix race condition

* add logging

---------

Co-authored-by: Jonathan Vexler <=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-0.15.0 size:S PR with lines of changes in (10, 100]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants