Skip to content

[BEAM-5791] Improve Python SDK progress counters.#6751

Merged
robertwb merged 1 commit intoapache:masterfrom
robertwb:progress-counters
Oct 22, 2018
Merged

[BEAM-5791] Improve Python SDK progress counters.#6751
robertwb merged 1 commit intoapache:masterfrom
robertwb:progress-counters

Conversation

@robertwb
Copy link
Contributor

The returned metrics are supposed to count the elements consumed, which should
be incremented after an element is produced, not before. Updated counters
to correctly reflect this, which is important for tracking the rate of buffer
consumption by runners

Also, some runners (e.g. the Dataflow harness) don't set unique names on
PTransforms, which was causing counters to be conflated. Now the counters
use the ptransform_id if the unique name is not provided.


Follow this checklist to help us incorporate your contribution quickly and easily:

  • 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.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java 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 --- --- ---

@robertwb
Copy link
Contributor Author

R: @tvalentyn

The returned metrics are supposed to count the elements consumed, which should
be incremented after an element is produced, not before.  Updated counters
to correctly reflect this, which is important for tracking the rate of buffer
consumption by runners

Also, some runners (e.g. the Dataflow harness) don't set unique names on
PTransforms, which was causing counters to be conflated.  Now the counters
use the ptransform_id if the unique name is not provided.
@robertwb robertwb merged commit ddfc3e8 into apache:master Oct 22, 2018
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