Skip to content

[BEAM-22] Close Readers in InProcess Read Evaluators#52

Closed
tgroh wants to merge 2 commits intoapache:masterfrom
tgroh:ippr_close_sources
Closed

[BEAM-22] Close Readers in InProcess Read Evaluators#52
tgroh wants to merge 2 commits intoapache:masterfrom
tgroh:ippr_close_sources

Conversation

@tgroh
Copy link
Member

@tgroh tgroh commented Mar 15, 2016

The readers were formerly left open, which prevents release of any
resources that should be released or additional on-close behavior.

The readers were formerly left open, which prevents release of any
resources that should be released.
@kennknowles
Copy link
Member

R: me!

@@ -104,36 +103,39 @@ private <OutputT> Queue<BoundedReadEvaluator<OutputT>> getTransformEvaluatorQueu
private static class BoundedReadEvaluator<OutputT> implements TransformEvaluator<Object> {
Copy link
Member

Choose a reason for hiding this comment

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

It might be worth a smidgin of implementation detail javadoc here mentioning that the reader is only actually opened on finish bundle. It is a private class anyhow, but may direct your future self to the right place to look if there is a bug.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

Add comments to the evaluators to note proper caller hygiene
@asfgit asfgit closed this in 5b5c0e2 Mar 18, 2016
davorbonaci added a commit to GoogleCloudPlatform/DataflowJavaSDK that referenced this pull request Mar 25, 2016
@tgroh tgroh deleted the ippr_close_sources branch March 30, 2016 21:13
axelmagn pushed a commit to axelmagn/beam that referenced this pull request Apr 9, 2018
Fix pipeline options reading in Java SDK harness
tvalentyn pushed a commit to tvalentyn/beam that referenced this pull request May 15, 2018
hengfengli referenced this pull request in hengfengli/beam Mar 21, 2022
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.

2 participants