Skip to content

Conversation

@mshields822
Copy link
Contributor

Turns out there was a bug with allowing 'advanced beyond last element' to be a valid counter state.
Only an internal reload test caught it.
Included unit test for that case.

@mshields822
Copy link
Contributor Author

R: @dhalperi

@mshields822
Copy link
Contributor Author

R: @lukecwik

if (current >= numMessagesPerShard) {
if (current >= numMessagesPerShard - 1) {
return false;
}
Copy link
Contributor

@dhalperi dhalperi Apr 26, 2016

Choose a reason for hiding this comment

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

should this be reordered below the if below it? Probably little harm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I prefer this order - if done early exit, if want to repeat repeat, otherwise advance to valid position.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes. just confirming it's okay that you can't repeat the last element.

@dhalperi
Copy link
Contributor

LGTM

@asfgit asfgit closed this in 5e3d7ad Apr 27, 2016
dhalperi pushed a commit to GoogleCloudPlatform/DataflowJavaSDK that referenced this pull request Apr 27, 2016
iemejia pushed a commit to iemejia/beam that referenced this pull request Jan 12, 2018
mareksimunek added a commit to mareksimunek/beam that referenced this pull request May 9, 2018
pl04351820 pushed a commit to pl04351820/beam that referenced this pull request Dec 20, 2023
* docs: adds UPGRADING.md, not to readme, to help inform users about migration to v2

* docs: erroneous version number

* Update UPGRADING.md

Co-authored-by: BenWhitehead <BenWhitehead@users.noreply.github.com>

* docs: clarify enums statement

* docs: add migration section to docs index

Co-authored-by: BenWhitehead <BenWhitehead@users.noreply.github.com>
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