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

Add GET api to get shard routing weights #4275

Merged
merged 87 commits into from
Oct 6, 2022

Commits on Sep 1, 2022

  1. Weighted round-robin scheduling policy for shard coordination traffic…

    … routing
    
    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    162cbeb View commit details
    Browse the repository at this point in the history
  2. Add caching layer for wrr shard routing and moved wrr routing call to…

    … shardRoutings
    
    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    8513c4f View commit details
    Browse the repository at this point in the history
  3. Integrate ARS with weighted round robin,

    Remove Cluster Settings for WRR
    Add Code refactoring and Java docs
    
    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    4cdbee3 View commit details
    Browse the repository at this point in the history
  4. Remove ARS and add tests for zone with undefined weight

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    7a49e5c View commit details
    Browse the repository at this point in the history
  5. Add changelog for the commit

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    03c4d23 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7c64537 View commit details
    Browse the repository at this point in the history
  7. Fix java doc, add test of WeightedRoundRobinRouting metadata

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    154a3b9 View commit details
    Browse the repository at this point in the history
  8. Fix minor change related to shuffling wrr shard routings

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    3afb4e3 View commit details
    Browse the repository at this point in the history
  9. Add PUT api for updating weighted round robin shard routing weights

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    d9e2b08 View commit details
    Browse the repository at this point in the history
  10. Add more validations for request body for put wrr weights

    Incorporate review comments and  more UTs
    
    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    c3b847a View commit details
    Browse the repository at this point in the history
  11. Update thread pool executor and do code refactoring

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    9cc2cd5 View commit details
    Browse the repository at this point in the history
  12. Fix missing java doc build failure

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    f07a9ad View commit details
    Browse the repository at this point in the history
  13. Add GET api to get weighted round robin shard routing weights

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    f3eda84 View commit details
    Browse the repository at this point in the history
  14. Add UTs for get local weight and some refactoring changes

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    28ccce4 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2022

  1. Make get action to return empty response if weights are not set

    Add fixes based on code review comments
    
    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    c9e6237 View commit details
    Browse the repository at this point in the history
  2. Update data type for weight

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    63616e7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9948d97 View commit details
    Browse the repository at this point in the history
  4. Throw ActionRequestValidationException on invalid awareness attribute

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    e12d247 View commit details
    Browse the repository at this point in the history
  5. Add safety check for getting local node weight

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    3463b39 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'feature/wrr-get-api' of https://github.com/anshu1106/Op…

    …enSearch into feature/wrr-get-api
    Anshu Agarwal committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    13ddba2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    30e17bc View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2022

  1. Add default weight 1 for zones with undefined weight

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    3aa6fbb View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'origin/main' into feature/wrr-shard-rou…

    …ting-core
    
    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    9ae063c View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2022

  1. Inject WRRShardsCache on node start

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    1112366 View commit details
    Browse the repository at this point in the history
  2. Remove extra new lines

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    cd3e16c View commit details
    Browse the repository at this point in the history
  3. Fix import

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    0c7dbd9 View commit details
    Browse the repository at this point in the history
  4. Add size for shard routing cache

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    438fe9e View commit details
    Browse the repository at this point in the history
  5. Invalidate shard routing cache on close

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    694be4d View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2022

  1. Refactor code

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    9236b8d View commit details
    Browse the repository at this point in the history
  2. Add test for Weighted routing iterator and some refactoring changes

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    93e7587 View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/main' into feature/wrr-shard-rou…

    …ting-core
    Anshu Agarwal committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    a9e30d1 View commit details
    Browse the repository at this point in the history
  4. Update metadata minimal supported version

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    17dc58c View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2022

  1. Add cluster setting for default weight

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    ed0cc1b View commit details
    Browse the repository at this point in the history
  2. Fix tests due to the change

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    5a5cb11 View commit details
    Browse the repository at this point in the history
  3. Fix cache concurrency issue

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    1c33964 View commit details
    Browse the repository at this point in the history
  4. Spotless check fix

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    f8638f2 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2022

  1. Fix weighted round robin logic case when there is an entity with weig…

    …ht 0
    
    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 15, 2022
    Configuration menu
    Copy the full SHA
    4016d27 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2022

  1. Changes weight data type to double

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    c98606d View commit details
    Browse the repository at this point in the history
  2. Fix test

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    1bd83f3 View commit details
    Browse the repository at this point in the history
  3. Empty commit

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    8a72dc0 View commit details
    Browse the repository at this point in the history
  4. Empty commit

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    bff61b9 View commit details
    Browse the repository at this point in the history
  5. Fix spotless check

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    9102616 View commit details
    Browse the repository at this point in the history
  6. Create in-memory cache for shard routings

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    a291634 View commit details
    Browse the repository at this point in the history
  7. Fix put operation for weighted shard routings

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    bd6c9e7 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2022

  1. Add tests for shard routing in-memory store

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 17, 2022
    Configuration menu
    Copy the full SHA
    d9368ab View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into feature/wrr-shard-routing-core

    Anshu Agarwal committed Sep 17, 2022
    Configuration menu
    Copy the full SHA
    a3f0290 View commit details
    Browse the repository at this point in the history
  3. Add java docs and some code refactoring

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 17, 2022
    Configuration menu
    Copy the full SHA
    01239bf View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2022

  1. Add null check for discovery nodes and single mutex for weighted shar…

    …d iterator
    
    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    dbbb263 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    785437b View commit details
    Browse the repository at this point in the history
  3. Refactor code

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    f06a039 View commit details
    Browse the repository at this point in the history
  4. Fix tests

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    0a4b829 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5f451d4 View commit details
    Browse the repository at this point in the history
  6. Refactor code

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    4f349e9 View commit details
    Browse the repository at this point in the history
  7. Remove unwanted changes

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    e59cff2 View commit details
    Browse the repository at this point in the history
  8. Remove unwanted changes for Requests.java

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    dc79fec View commit details
    Browse the repository at this point in the history
  9. Refactore code

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    7671d63 View commit details
    Browse the repository at this point in the history
  10. Add change log

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    454387d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    86ba360 View commit details
    Browse the repository at this point in the history
  12. Refactor code

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    54eecdf View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2022

  1. Modify request validation

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    9eb1bc1 View commit details
    Browse the repository at this point in the history
  2. Fix test failure

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    027d73a View commit details
    Browse the repository at this point in the history
  3. Make WeightedRoutingService not to imoplement ClusterStateApplier

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    19047e6 View commit details
    Browse the repository at this point in the history
  4. Update metadata call

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    663017f View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2022

  1. Add tests for WeightedRoutingService

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 21, 2022
    Configuration menu
    Copy the full SHA
    70790e9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4829300 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2022

  1. Add string formatter

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    ba87256 View commit details
    Browse the repository at this point in the history
  2. Fix locale in string formatter

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    4057441 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bb16814 View commit details
    Browse the repository at this point in the history
  4. Move logic to validate awareness attribute to service

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    2ab72a8 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2022

  1. Refactor code based on review comments

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    83797f4 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2022

  1. Refactor code

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 26, 2022
    Configuration menu
    Copy the full SHA
    006600c View commit details
    Browse the repository at this point in the history
  2. Refactor code

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 26, 2022
    Configuration menu
    Copy the full SHA
    0240ff0 View commit details
    Browse the repository at this point in the history
  3. Address review comments

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 26, 2022
    Configuration menu
    Copy the full SHA
    7763067 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3a0b0ff View commit details
    Browse the repository at this point in the history
  5. Address review comments

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 26, 2022
    Configuration menu
    Copy the full SHA
    703d918 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2022

  1. Add explicit count in validation error message

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    329c6f2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dbb6055 View commit details
    Browse the repository at this point in the history
  3. Refactor code

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    b9d4145 View commit details
    Browse the repository at this point in the history
  4. Add validation for get request

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    41c557b View commit details
    Browse the repository at this point in the history
  5. Merge branch 'main' into feature/wrr-get-api

    Anshu Agarwal committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    d1ec28b View commit details
    Browse the repository at this point in the history
  6. Refactor code

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    e4f030e View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2022

  1. Add unit tests

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    e9aea90 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2022

  1. Incorparate review comments and add integ tests

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    fb07086 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2022

  1. Merge branch 'main' into feature/wrr-get-api

    Anshu Agarwal committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    e152d39 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2022

  1. Remove return statement

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    ee839f7 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2022

  1. Made change to invoke response listener on all failures

    Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
    Anshu Agarwal committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    373f41a View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into feature/wrr-get-api

    Anshu Agarwal committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    defc1b4 View commit details
    Browse the repository at this point in the history