Skip to content

3.x: TokenAwarePolicy invesigate down replica flow #797

@dkropachev

Description

@dkropachev

There is following code:

if (host.isUp()
&& replicas.contains(host)
&& childPolicy.distance(host) == HostDistance.LOCAL) {
// UP replicas should be prioritized, retaining order from childPolicy
return host;
} else {
// save for later
if (nonReplicas == null) nonReplicas = new ArrayList<Host>();
nonReplicas.add(host);
}

That treats down replicas same way as nonreplicas, it looks wrong, we need to look at it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions