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

Return error if ports are specified in dnsrr mode #1207

Merged
merged 1 commit into from
Jul 22, 2016

Conversation

marcosnils
Copy link
Contributor

Signed-off-by: Marcos Lilljedahl marcosnils@gmail.com

@marcosnils
Copy link
Contributor Author

We discussed this through slack with @mavenugo

@marcosnils marcosnils changed the title Return error if ports are specified in dsnrr mode Return error if ports are specified in dnsrr mode Jul 22, 2016
@codecov-io
Copy link

codecov-io commented Jul 22, 2016

Current coverage is 54.97% (diff: 100%)

Merging #1207 into master will decrease coverage by 0.04%

@@             master      #1207   diff @@
==========================================
  Files            77         77          
  Lines         12257      12259     +2   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits           6744       6739     -5   
- Misses         4591       4593     +2   
- Partials        922        927     +5   

Sunburst

Powered by Codecov. Last update b3d7a48...b5b6fc8

},
},
})
assert.Error(t, err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Check that the error contains ports can't be used with dnsrr mode.

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 don't see that other tests validate error messages. I've seen this though

assert.Equal(t, codes.InvalidArgument, grpc.Code(err))

Should I add that check as well?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sure.

Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
@marcosnils
Copy link
Contributor Author

@aaronlehmann done.

@aaronlehmann
Copy link
Collaborator

LGTM

1 similar comment
@abronan
Copy link
Contributor

abronan commented Jul 22, 2016

LGTM

@mustafayildirim
Copy link

@marcosnils
Is there any way to use specified ports with dnsrr mode?
Thanks.

@mavenugo
Copy link
Contributor

@mrjana Given that routing-mesh performs opinionated port-based LB & it is not a generic network to be used for other purposes, I think we should remove this restriction & let the user use DNS-RR for back-end networks. wdyt ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants