Skip to content

[BEAM-8504] Fix a bug related to zero-row responses#9987

Merged
chamikaramj merged 1 commit intoapache:masterfrom
aryann:fraction_fix
Nov 5, 2019
Merged

[BEAM-8504] Fix a bug related to zero-row responses#9987
chamikaramj merged 1 commit intoapache:masterfrom
aryann:fraction_fix

Conversation

@aryann
Copy link
Contributor

@aryann aryann commented Nov 4, 2019

In some rare cases, the server can included zero rows in the response messages,
leading to a zero count of rows and a progress report that does not
increase. This change relaxes some of our preconditions.


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

@aryann
Copy link
Contributor Author

aryann commented Nov 4, 2019

R: @chamikaramj @kanterov

Copy link
Contributor

@chamikaramj chamikaramj left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like message does not match with the condition ? Do you just want to make sure that the row count is not negative for some reason ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And this is why we do code reviews! Done.

Copy link
Contributor

Choose a reason for hiding this comment

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

Probably re-word to "Fraction consumed from the current response has to be larger than or equal to the fraction consumed from the previous response. But received %s and %s respectively."

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.

In some rare cases, the server can included zero rows in the response messages,
leading to a zero count of rows and a progress report that does not
increase. This change relaxes some of our preconditions.
@chamikaramj
Copy link
Contributor

LGTM. Thanks.

@chamikaramj chamikaramj merged commit 9233aa4 into apache:master Nov 5, 2019
@kanterov
Copy link
Member

kanterov commented Nov 5, 2019

Thanks. It looks good!

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.

3 participants