Skip to content

[BEAM-7516][BEAM-8823] Refactoring FnApiRunner execution logic#10704

Closed
pabloem wants to merge 3 commits intoapache:masterfrom
pabloem:fn-refactor
Closed

[BEAM-7516][BEAM-8823] Refactoring FnApiRunner execution logic#10704
pabloem wants to merge 3 commits intoapache:masterfrom
pabloem:fn-refactor

Conversation

@pabloem
Copy link
Member

@pabloem pabloem commented Jan 28, 2020

This includes the style / refactoring changes related to #10291 - to ideally simplify the review of actual functional changes in #10291.

r: @robertwb


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
--- Build Status
Build Status
Build Status
Build Status
--- --- Build Status
XLang --- --- --- Build Status --- --- ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status
Build Status
Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@pabloem
Copy link
Member Author

pabloem commented Jan 28, 2020

@pabloem
Copy link
Member Author

pabloem commented Jan 28, 2020

r: @robertwb

@pabloem pabloem requested a review from robertwb January 28, 2020 21:00
Copy link
Contributor

@robertwb robertwb left a comment

Choose a reason for hiding this comment

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

As discussed in person, there may be some larger scale refactorings that we could do here (e.g. finding chunks with good boundaries of abstraction) and possibly creating a full subdirectory for the splitting of this file to go into.

with self.maybe_profile():
pcoll_buffers = collections.defaultdict(_ListBuffer) # type: DefaultDict[bytes, PartitionableBuffer]
pcoll_buffers = collections.defaultdict(
fn_api_runner_execution._ListBuffer) # type: DefaultDict[bytes, fn_api_runner_execution._ListBuffer]
Copy link
Contributor

Choose a reason for hiding this comment

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

PartitionableBuffer?

raise ValueError(
"Unknown access pattern: '%s'" % si.urn)

def add_residuals_and_channel_splits_to_deferred_inputs(
Copy link
Contributor

Choose a reason for hiding this comment

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

This is one of those methods that doesn't make very much sense out of context. At least add a docstring?

@pabloem pabloem closed this Feb 18, 2020
@pabloem
Copy link
Member Author

pabloem commented Feb 18, 2020

closing.

@pabloem pabloem deleted the fn-refactor branch February 18, 2020 09:18
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