-
Notifications
You must be signed in to change notification settings - Fork 4.5k
PCollection data sampling for Java SDK harness #25064 #25354
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
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
cd630e4
Data Sampling Java Impl
e530d14
comments
a09f5d6
add PBD id to context
rohdesamuel 1cb08f9
merge
566c7b8
Add more tests and spotless
7395a2e
Finish Java data sampling impl with tests, adding comments
4c1253f
more comments, remove Payload
3d88254
more comments
5bbef91
spotless
6993b83
Encode in the nested context
rohdesamuel 769902f
Update sdks/java/harness/src/main/java/org/apache/beam/fn/harness/con…
rohdesamuel 5c06d4e
Apply suggestions from code review
rohdesamuel 99087e8
address pr comments
5609e4a
give default pbd id to test context
rohdesamuel 694c929
address spotlesscheck
rohdesamuel 519aece
spotless apply
rohdesamuel 8efbb15
style guide spotless apply
rohdesamuel cd3732d
add serviceloader
rohdesamuel 415e3f0
change datasampling to modify the consumers and not graph for sampling
rohdesamuel 553fc5e
remove redundant SamplerState obj
rohdesamuel e260eb4
spotless
rohdesamuel 4f29308
replace mutex with atomics in output sampler to reduce contention
rohdesamuel 8cbc6c8
spotless and fix OutputSamplerTest
rohdesamuel f67234f
Update sdks/java/harness/src/main/java/org/apache/beam/fn/harness/dat…
rohdesamuel 6815330
Update sdks/java/harness/src/main/java/org/apache/beam/fn/harness/dat…
rohdesamuel 4848725
Update sdks/java/harness/src/main/java/org/apache/beam/fn/harness/deb…
rohdesamuel 6c16576
always init outputsampler
rohdesamuel 822587d
add final to DataSampler in FnHarness
rohdesamuel fe9ab2a
spotless apply
rohdesamuel 07d37ea
update from proto names
rohdesamuel 5e9c4b0
spotless bugs
f5f97fb
Apply suggestions from code review
rohdesamuel c3db7c0
address pr comments
fce6d69
spotlessapply and add byte[] test
69d8bb4
validate datasampler args
be2ebe4
add concurrency tests
93af06e
Merge branch 'master' into data-sampling-java
lukecwik cbdbbc3
Update sdks/java/harness/src/main/java/org/apache/beam/fn/harness/deb…
rohdesamuel 8cc8ee0
Update sdks/java/harness/src/test/java/org/apache/beam/fn/harness/deb…
rohdesamuel 10aa7de
Update sdks/java/harness/src/test/java/org/apache/beam/fn/harness/deb…
rohdesamuel 04c6c88
Update sdks/java/harness/src/test/java/org/apache/beam/fn/harness/deb…
rohdesamuel 862439b
improve contention tests
490be4a
spotless
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
There are no files selected for viewing
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.
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.
Don't you want to sample the value with the windowing information attached?
The runner would be responsible for pulling out the attributes that are being sampled that can be introspected and/or saved.
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.
I do, but I don't want to alter the encoding of the sampled bytes when sending back to the runner. It's not impossible, but I've found that there are a lot of mines when changing encodings.