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

Fix ToGatewayUri after #6823 #6851

Merged
merged 1 commit into from
Dec 8, 2020
Merged

Fix ToGatewayUri after #6823 #6851

merged 1 commit into from
Dec 8, 2020

Conversation

ReubenBond
Copy link
Member

#6823 changed some behavior slightly. This PR undoes that.

@pentp
Copy link
Contributor

pentp commented Dec 8, 2020

Why add generation number to gateway uris? Especially non-zero gen numbers, as they will be later specifically removed - this ends up costing twice for no gains: 1) get gateway address 2) create siloaddress and get gateway uri with gen 3) parse siloaddress with gateway uri 4) create a new siloaddress with gen 0: steps 2, 3 are entirely useless?

@ReubenBond
Copy link
Member Author

For consistency with existing code. It could be made consistent by removing the generation everywhere, too, but this reverts to the previously known-good behavior. The current code fails the MembershipTable_Azure_Gateway test (my bad for not verifying the result)

@benjaminpetit benjaminpetit merged commit e3d36f1 into master Dec 8, 2020
@pentp
Copy link
Contributor

pentp commented Dec 8, 2020

But isn't the point of improving code to change the current consistent state to a new consistent state of code? The /gen (or even /0) doesn't provide any value here...

@ReubenBond
Copy link
Member Author

Usually we would revert the entire PR as soon as an issue is found (eg, test failing), and then issue a second PR which fixes those issues in addition to the original changes. If you're able, and it won't break compatibility, we could have a PR to consistently remove the generation from all .ToGatewayUri() overloads

@ReubenBond ReubenBond deleted the fix/gw-formatting branch December 8, 2020 23:06
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants