Uh oh!
There was an error while loading. Please reload this page.
[BEAM-10047] Merge the stages 'Gather and Sort' and 'Create Batches' - #11570
Conversation
f6a09a2 to
87d22b5Compareallenpradeep
commented
May 1, 2020
This is great niel. With these changes, there are 3 modes of using SpannerIO write. Questions:
|
allenpradeep
commented
May 6, 2020
I'm good with these changes except the questions I had regarding the usages. |
Uh oh!
There was an error while loading. Please reload this page.
allenpradeep
commented
May 7, 2020
Hi Niel, |
nielm
commented
May 18, 2020
We can discuss this outside the scope of this PR.
I have added a section to the javadoc explaining these 3 modes of operation, and their pros and cons. |
ac119f0 to
8f94438CompareTheNeuralBit
commented
May 18, 2020
Retest this please |
nielm
commented
May 19, 2020
Retest this please |
2 similar comments
TheNeuralBit
commented
May 19, 2020
Retest this please |
TheNeuralBit
commented
May 19, 2020
Retest this please |
There is minimal benefit in separating these 2 stages, and significant benefity in merging them: Gather and Sort encodes incoming MutationGroups into a List<byte[]> which would contain up to 1GB. This is then output (copied) to the CreateBatches where it is decoded back into MutationGroups. Removing this encode/decode should save up to 2GB of RAM.
nielm
commented
Jun 10, 2020
Retest this please |
1 similar comment
TheNeuralBit
commented
Jun 12, 2020
Retest this please |
udim
commented
Jun 23, 2020
Is this ready to merge? |
tvalentyn
commented
Jun 24, 2020
Run Java PreCommit |
tvalentyn
commented
Jun 24, 2020
Can't tell if tests passed or not, rerunning. |
Can we merge this PR? I would want to send out a PR to count bytes written to spanner and that would be dependent on this. |
nielm
commented
Jun 25, 2020
Retest this please |
chamikaramj
commented
Jun 26, 2020
Run Java PostCommit |
chamikaramj
commented
Jun 26, 2020
Thanks. We can merge if post-commit tests pass. |
There is minimal benefit in separating these 2 stages, and significant
benefity in merging them: Gather and Sort encodes incoming
MutationGroups into a List<byte[]> which would contain up to 1GB.
This is then output (copied) to the CreateBatches where it is decoded
back into MutationGroups.
Removing this encode/decode should save up to 2GB of RAM.
Note, this PR is dependent on PR #11528, PR #11532 and PR #11529
Post-Commit Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.