Skip to content

Conversation

mt-monster
Copy link

…p stage ,this is relate to cse-554

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 86.841% when pulling e63d78f on mt-monster:JAV-479_optimizeLB into 029ddd4 on ServiceComb:master.

import java.util.ArrayList;
import java.util.List;

public class StageDistinguishFilter implements ServerListFilterExt {
Copy link
Contributor

Choose a reason for hiding this comment

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

please use DiscoverFilter to impl this

and i heard that, SC will only return same stage instances, so this filter is useless?

Copy link
Contributor

Choose a reason for hiding this comment

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

this feature given by SC, they will return all instances of different env's. STAGE is another scope of separation.

instances = pulledInstances
.stream()
.filter(instance -> {
return MicroserviceInstanceStatus.UP.equals(instance.getStatus());
Copy link
Contributor

Choose a reason for hiding this comment

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

It's better a add this logic here and filter out all other env's instances. Because this is a required feature, and filters are optional ones.

import java.util.ArrayList;
import java.util.List;

public class StageDistinguishFilter implements ServerListFilterExt {
Copy link
Contributor

Choose a reason for hiding this comment

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

this feature given by SC, they will return all instances of different env's. STAGE is another scope of separation.

@mt-monster mt-monster closed this Nov 22, 2017
@mt-monster mt-monster deleted the JAV-479_optimizeLB branch November 25, 2017 11:10
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.

4 participants