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

replica selector refactor #1142

Merged
merged 76 commits into from
Mar 11, 2024
Merged

replica selector refactor #1142

merged 76 commits into from
Mar 11, 2024

Commits on Jan 23, 2024

  1. init

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    9920ba3 View commit details
    Browse the repository at this point in the history
  2. add ReplicaSelector interface

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    1a3f367 View commit details
    Browse the repository at this point in the history
  3. add replica_selector_v2, todo: fix test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    31f9f5d View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2024

  1. fix all test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    5e57170 View commit details
    Browse the repository at this point in the history
  2. fix test in another way to compatible with old version about stale-re…

    …ad request
    
    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    fc9b192 View commit details
    Browse the repository at this point in the history
  3. tiny refactor

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    b60f4e1 View commit details
    Browse the repository at this point in the history
  4. refactor to remove duplicate code

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    0df7353 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2024

  1. add more test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    42d67bd View commit details
    Browse the repository at this point in the history
  2. refine onServerIsBusy region error handing logic

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    36cd5c1 View commit details
    Browse the repository at this point in the history
  3. support forwarding by proxy

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    3cf3cdd View commit details
    Browse the repository at this point in the history
  4. support busyThreshold and tiny reractor code

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    3ff9542 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2024

  1. add config

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    1265452 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6a11f6e View commit details
    Browse the repository at this point in the history
  3. fix test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    ce864de View commit details
    Browse the repository at this point in the history
  4. fix proxy bug

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    2b7c636 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2024

  1. fix test and tiny refactor

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    fafb520 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d97a061 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2024

  1. add some test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    c6a10bf View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2024

  1. add more test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    0309452 View commit details
    Browse the repository at this point in the history
  2. tidy refine

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    dc55c5b View commit details
    Browse the repository at this point in the history
  3. address comment

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    055204f View commit details
    Browse the repository at this point in the history
  4. fix test in v1

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    6514588 View commit details
    Browse the repository at this point in the history
  5. add backoff-cnt check and timeout test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    b411664 View commit details
    Browse the repository at this point in the history
  6. refine test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    a6bda0c View commit details
    Browse the repository at this point in the history
  7. Merge branch 'master' of https://github.com/tikv/client-go into cs-dev1

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    f03a51f View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2024

  1. refine code

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    62e52e0 View commit details
    Browse the repository at this point in the history
  2. refine code

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    190e0cb View commit details
    Browse the repository at this point in the history
  3. add benchmark test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    6f5b52c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    29bed25 View commit details
    Browse the repository at this point in the history
  5. make test stale

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    e68e0b8 View commit details
    Browse the repository at this point in the history
  6. fix golangci

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    5081684 View commit details
    Browse the repository at this point in the history
  7. add more test and refine code

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    49df8dc View commit details
    Browse the repository at this point in the history
  8. fix race test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    c4c21ce View commit details
    Browse the repository at this point in the history
  9. add more comprehensive enumeration testing

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    b1b5287 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2024

  1. refine test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    2bed4c4 View commit details
    Browse the repository at this point in the history
  2. fix test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    672ac8b View commit details
    Browse the repository at this point in the history
  3. fix accessFollower with label retry bug

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    afdb532 View commit details
    Browse the repository at this point in the history
  4. refine test and fix some bug

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    6df5777 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2024

  1. fix test and add more test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    a186e4c View commit details
    Browse the repository at this point in the history
  2. add more test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    5b97db0 View commit details
    Browse the repository at this point in the history
  3. refine test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    5e28c1d View commit details
    Browse the repository at this point in the history
  4. refine test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    26f4937 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2024

  1. refine onNotLeader logic when new leader is not available

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    2c141f7 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2024

  1. refine calculateScore logic, if the replica already tried, decrease t…

    …he score
    
    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    4db2bdf View commit details
    Browse the repository at this point in the history
  2. refine logic: replica-read request with mixed strategy and with label…

    …, should be able to retry all remain replicas
    
    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    4830c33 View commit details
    Browse the repository at this point in the history
  3. prefer-leader for mixed read with label for non stale-read req

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    352cdb3 View commit details
    Browse the repository at this point in the history
  4. add more test case

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    9f299f2 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2024

  1. resolve conflict

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    5625303 View commit details
    Browse the repository at this point in the history
  2. refine code

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    08af745 View commit details
    Browse the repository at this point in the history
  3. resolve conflict

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    2bdf1c8 View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2024

  1. remove some duplicate test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    3098de4 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' of https://github.com/tikv/client-go into cs-dev1

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    a3d37bf View commit details
    Browse the repository at this point in the history
  3. refactor test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    5d6acc3 View commit details
    Browse the repository at this point in the history
  4. refine code

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    eb6cd73 View commit details
    Browse the repository at this point in the history
  5. refine test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    4fe7925 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2024

  1. add busy_threshold test and fix bug

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    1cddd00 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. fix proxy bug and add more test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    d518ca3 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' of https://github.com/tikv/client-go into cs-dev1

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    50bb08d View commit details
    Browse the repository at this point in the history
  3. refine code and add test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    902f2ef View commit details
    Browse the repository at this point in the history
  4. add learner test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    f55e8df View commit details
    Browse the repository at this point in the history
  5. add more test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    76b8162 View commit details
    Browse the repository at this point in the history
  6. remove old test and refine test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    2dca9f9 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. move test

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    88a19a1 View commit details
    Browse the repository at this point in the history
  2. address comment

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    cd38d95 View commit details
    Browse the repository at this point in the history
  3. use new score calculation by flag bit

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    db60472 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4fd6021 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. make test stable

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    fb0419f View commit details
    Browse the repository at this point in the history
  2. refine comment,license and fix lint

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    6f55235 View commit details
    Browse the repository at this point in the history
  3. refine comment

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    b7f9933 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. Configuration menu
    Copy the full SHA
    1225db1 View commit details
    Browse the repository at this point in the history
  2. refine comment

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    8557bfd View commit details
    Browse the repository at this point in the history
  3. fix race test timeout

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    e4d576c View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2024

  1. add flagNotAttemp in score

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    da0b829 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f98282c View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2024

  1. Configuration menu
    Copy the full SHA
    b92fc47 View commit details
    Browse the repository at this point in the history
  2. address comment

    Signed-off-by: crazycs520 <crazycs520@gmail.com>
    crazycs520 committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    6e64263 View commit details
    Browse the repository at this point in the history