Skip to content

[cherrypick] [PLUGIN-1897] Wide Record reader fix.#292

Merged
prince-cs merged 1 commit intorelease/1.6from
cherrypick-wide-record-reader-fix
Jun 30, 2025
Merged

[cherrypick] [PLUGIN-1897] Wide Record reader fix.#292
prince-cs merged 1 commit intorelease/1.6from
cherrypick-wide-record-reader-fix

Conversation

@prince-cs
Copy link
Contributor

Currently records from a single batch are being read in a parallel stream processing and the result is being stored in its entirety. This could lead to out of memory(OOM).

The fix is to ensure that the batches are being read with the help of an iterator rather storing the entire result. Made the changes accordingly to SalesforceWideRecordReader.java

Validation has been done by making a query of length more than 20k and ensuring the pipeline passes.

JIRA: https://cdap.atlassian.net/browse/PLUGIN-1897

@prince-cs prince-cs force-pushed the cherrypick-wide-record-reader-fix branch from e254ea7 to 7b79931 Compare June 30, 2025 17:32
@prince-cs prince-cs requested a review from MrRahulSharma June 30, 2025 17:33
@prince-cs prince-cs merged commit 5e26ecb into release/1.6 Jun 30, 2025
7 checks passed
@prince-cs prince-cs deleted the cherrypick-wide-record-reader-fix branch June 30, 2025 17:53
@vikasrathee-cs vikasrathee-cs changed the title [cherry-pick] Wide Record reader fix. [cherrypick] [PLUGIN-1897] Wide Record reader fix. Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants