Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update beam to v2.53 #5133

Merged
merged 5 commits into from
Jan 11, 2024
Merged

Update beam to v2.53 #5133

merged 5 commits into from
Jan 11, 2024

Conversation

RustedBones
Copy link
Contributor

@RustedBones RustedBones commented Jan 4, 2024

Updating beam to 2.53

Some changes in bigtable forced to create some more method in the beam package because package visibility

@RustedBones RustedBones marked this pull request as draft January 4, 2024 14:25
@@ -142,17 +142,13 @@ public void processElement(@Element Iterable<KV<ByteString, Iterable<Mutation>>>

@FinishBundle
public void finishBundle() throws Exception {
bigtableWriter.flush();
Copy link
Contributor

Choose a reason for hiding this comment

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

is the flush call no longer needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

flush is not part of the API anymore. See this commit: apache/beam@b566480

@RustedBones RustedBones marked this pull request as ready for review January 5, 2024 08:18
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6dbbdf5) 63.35% compared to head (25fba90) 63.34%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5133      +/-   ##
==========================================
- Coverage   63.35%   63.34%   -0.01%     
==========================================
  Files         291      291              
  Lines       10840    10840              
  Branches      753      753              
==========================================
- Hits         6868     6867       -1     
- Misses       3972     3973       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

}

@Teardown
public void tearDown() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't there an overhead when creating a new bigbableWriter on each bundle?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

probably yes, but I don't know how to workaround this since close is the only way to flush now.
I'll simplify the code to remove the null check in the startBundle as we'll always have to create a new writer

Copy link
Contributor Author

Choose a reason for hiding this comment

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

checked in the beam implementation, they also recreate writer on every bundle

@RustedBones RustedBones merged commit fc7dc50 into main Jan 11, 2024
11 checks passed
@RustedBones RustedBones deleted the beam-2.53 branch January 11, 2024 15:19
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