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

Simplify tokenAwareHostPolicy.Pick #197

Merged

Commits on Jun 25, 2024

  1. Simplify tokenAwareHostPolicy.Pick

    Main goal is to make `tokenAwareHostPolicy.Pick` code less convoluted.
    But there are little functional changes:
    Before this PR hosts from tablets are not being shuffled
    There are three host information sources: tablets, meta and tokenring,
    Before this PR if tables returned no hosts for given token, in certain cases code did not consider meta or tokenring.
    And same for meta, it did not consider tokenring.
    After this PR, it starts goes through tablets, meta and tokenring, if current host sources yield no hosts it proceed to next one.
    dkropachev committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    b79ba6d View commit details
    Browse the repository at this point in the history