Skip to content
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

[BEAM-10876] Fix TypeError in dataflow_metrics when distribution sum … #12817

Merged
merged 3 commits into from Sep 11, 2020

Conversation

y1chi
Copy link
Contributor

@y1chi y1chi commented Sep 10, 2020

…overflows

Please add a meaningful description for your change here


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.
  • Update CHANGES.md with noteworthy changes.
  • 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 Dataflow Flink Samza Spark Twister2
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
Build Status
Python Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
--- Build Status ---
XLang Build Status --- Build Status --- Build Status ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website Whitespace Typescript
Non-portable Build Status Build Status
Build Status
Build Status
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.

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests

See CI.md for more information about GitHub Actions CI.

@y1chi
Copy link
Contributor Author

y1chi commented Sep 10, 2020

R: @angoenka

Copy link
Contributor

@angoenka angoenka left a comment

Choose a reason for hiding this comment

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

Thanks!

# distribution metric is not meant to use on large values, but in case
# it is, the value can overflow and become double_value, the correctness
# of the value may not be guaranteed.
dist_sum = int(
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to log if this happens else this will be a silent failure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good.

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also add the metric name in the logs for easier debugging.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@codecov
Copy link

codecov bot commented Sep 10, 2020

Codecov Report

Merging #12817 into master will increase coverage by 42.00%.
The diff coverage is 84.31%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #12817       +/-   ##
===========================================
+ Coverage   40.38%   82.39%   +42.00%     
===========================================
  Files         451      451               
  Lines       53721    53769       +48     
===========================================
+ Hits        21696    44301    +22605     
+ Misses      32025     9468    -22557     
Impacted Files Coverage Δ
...n/apache_beam/runners/dataflow/dataflow_metrics.py 74.32% <33.33%> (+50.18%) ⬆️
...ache_beam/runners/interactive/recording_manager.py 92.85% <69.23%> (+63.80%) ⬆️
...beam/runners/interactive/background_caching_job.py 94.78% <90.90%> (+69.78%) ⬆️
...eam/runners/portability/fn_api_runner/fn_runner.py 89.74% <100.00%> (+65.22%) ⬆️
.../runners/portability/fn_api_runner/translations.py 88.17% <100.00%> (+74.55%) ⬆️
sdks/python/apache_beam/coders/slow_stream.py 92.43% <0.00%> (+1.68%) ⬆️
sdks/python/apache_beam/utils/profiler.py 32.11% <0.00%> (+1.83%) ⬆️
...on/apache_beam/runners/direct/sdf_direct_runner.py 36.21% <0.00%> (+2.46%) ⬆️
sdks/python/apache_beam/coders/coder_impl.py 95.25% <0.00%> (+2.64%) ⬆️
sdks/python/apache_beam/io/azure/blobstorageio.py 26.95% <0.00%> (+3.19%) ⬆️
... and 273 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 68e7f2e...0249004. Read the comment docs.

Copy link
Contributor

@angoenka angoenka left a comment

Choose a reason for hiding this comment

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

Thanks!

@angoenka angoenka merged commit de309d2 into apache:master Sep 11, 2020
ibzib pushed a commit to ibzib/beam that referenced this pull request Sep 30, 2020
apache#12817)

* [BEAM-10876] Fix TypeError in dataflow_metrics when distribution sum overflows

* Add logging

* Add the distribution counter to logging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants