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

Missing scheme on downstream request #1274

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

rubenmonteiro
Copy link

@rubenmonteiro rubenmonteiro commented Jun 27, 2020

Actual Behavior

On the LeastConnection balancer the downstream host scheme property is ignored and not return when Lease is called.

Fixes

???

Proposed Changes

  • LeastConnection predicates (filters) take the HostAndPort.Scheme property into account

@raman-m raman-m changed the base branch from master to develop July 19, 2023 15:51
@raman-m
Copy link
Member

raman-m commented Jul 19, 2023

Hi Ruben!
Thanks for your interest in Ocelot!

What issue is this PR related to?

If Not related,
Could you describe your user case in details please?

Copy link
Member

@raman-m raman-m left a comment

Choose a reason for hiding this comment

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

What do I see now...
You've added this predicate suffix: && s.HostAndPort.Scheme == lease.HostAndPort.Scheme
This suffix will help to recognize, filter the service from the list which contains multiple services with the same host and port, but they differ by scheme, right?

I might approve this. And current acceptance/unit tests are not broken...
But...
Could you add a few unit tests in LeastConnectionTests please? They should cover new added predicate suffix.

Also adding new acceptance tests for LeastConnection are welcome!

@raman-m raman-m added question Initially seen a question could become a new feature or bug or closed ;) proposal Proposal for a new functionality in Ocelot needs feedback Issue is waiting on feedback before acceptance waiting Waiting for answer to question or feedback from issue raiser labels Jul 19, 2023
Ruben Monteiro and others added 2 commits August 1, 2023 20:31
On the LeastConnection balancer the downstream host scheme property is ignored and not return when Lease is called
@raman-m
Copy link
Member

raman-m commented Aug 1, 2023

@ggnaegi @RaynaldM
Could you review this piece of art please? 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs feedback Issue is waiting on feedback before acceptance proposal Proposal for a new functionality in Ocelot question Initially seen a question could become a new feature or bug or closed ;) waiting Waiting for answer to question or feedback from issue raiser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants