-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Adds bundleFinalizer support to Dataflow non-portable worker. #37723
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
Merged
+544
−63
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
fda75e0
Adds bundleFinalizer support to non-portable worker.
acrites 1ec825d
Removes check preventing stateful DoFn's with bundle finalizers from …
acrites 4694de8
Changes finalize method to only acquire the lock once. Runs finalize …
acrites 8570168
Addresses PR review comments, mostly around improving tests.
acrites 5e1642c
Addresses minor code comments. Adds back in tests for batch, non-port…
acrites a65b537
Merge branch 'master' into bundle-finalizer
acrites 6dcafc4
Ran spotlessApply
acrites 081a900
Merge branch 'bundle-finalizer' of https://github.com/acrites/beam in…
acrites 7413001
Addresses more PR review comments. Triggering validates runner tests.
acrites 5b24e50
Adds finalization callbacks directly when flushing instead of copying…
acrites 4f01761
Ran spotlessApply and retriggering streaming ValidatesRunner tests.
acrites 591aeaa
Retriggering validates runner tests.
acrites d7df552
Changes Long to long for build error.
acrites a50b859
Starts finalization callback cleanup thread lazily. This is for tests…
acrites 047592e
Merge remote-tracking branch 'upstream/master' into bundle-finalizer
acrites 7c62f6f
Excludes bundle finalizer tests for appliance only and retriggers val…
acrites 24ce8f6
Switches which Pair library being imported since it was causing undec…
acrites File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
.github/trigger_files/beam_PostCommit_Java_ValidatesRunner_Dataflow.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "comment": "Modify this file in a trivial way to cause this test suite to run!", | ||
| "modification": 3, | ||
| "modification": 1, | ||
| } | ||
|
|
2 changes: 1 addition & 1 deletion
2
.github/trigger_files/beam_PostCommit_Java_ValidatesRunner_Dataflow_Streaming.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| { | ||
| "comment": "Modify this file in a trivial way to cause this test suite to run!", | ||
| "modification": 1, | ||
| "modification": 6, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add the appliedFinalizeIds to the work item builder before building instead of passing to create? or could remove the list and just add to the builder where we are currently adding to the list.
Otherwise I had a concern we were passing out mutable list outside this class. It is safe since we can that create below is just iterating and not keeping a reference to it but seems like we might as well do it here so it's clearer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. That seems a bit clearer. Now I don't even have to pass them to the AssembledWorkItem.