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

[JUJU-1950] Use the new lease store in the lease manager #15002

Merged
merged 21 commits into from
Dec 16, 2022

Commits on Dec 13, 2022

  1. Configuration menu
    Copy the full SHA
    676123a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    49ee52c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a71944e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d845279 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7505cc8 View commit details
    Browse the repository at this point in the history
  6. Removes all raft workers. They are no longer required since we are

    moving to Dqlite-backed leases.
    manadart committed Dec 13, 2022
    Configuration menu
    Copy the full SHA
    afa21e0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    67d9184 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2290879 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    cebd81d View commit details
    Browse the repository at this point in the history
  10. Changes lease manager manifold to work with the new DB-backed lease

    store constructor.
    
    The FSM and sundries are no longer required and are removed along with
    all Raft concerns from the manifold declarations.
    manadart committed Dec 13, 2022
    Configuration menu
    Copy the full SHA
    e4b0ee9 View commit details
    Browse the repository at this point in the history
  11. Removes unrequired hub from lease manager manifold config and fixes

    manifold tests for new inputs.
    manadart committed Dec 13, 2022
    Configuration menu
    Copy the full SHA
    c578384 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    35e3671 View commit details
    Browse the repository at this point in the history
  13. Removes the Raft operation queue creation from the machine agent. It is

    no longer used, and has been removed.
    manadart committed Dec 13, 2022
    Configuration menu
    Copy the full SHA
    50b5eec View commit details
    Browse the repository at this point in the history
  14. Threads the db-accessor into the lease manager worker, and uses it to

    retrieve the controller DB, which is used by the lease store.
    manadart committed Dec 13, 2022
    Configuration menu
    Copy the full SHA
    c8eca2f View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2022

  1. Creates a new simple test suite for testing controller concerns with

    in-memory SQLite.
    
    This is used by the lease store tests, which are also fixed for the
    corrected lease namespaces.
    manadart committed Dec 15, 2022
    Configuration menu
    Copy the full SHA
    40bce47 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    96fef13 View commit details
    Browse the repository at this point in the history
  3. Adds the lease expiry worker to the common machine manifolds config so

    that it runs on all controllers.
    manadart committed Dec 15, 2022
    Configuration menu
    Copy the full SHA
    04764af View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2022

  1. Removes lease error handling from the API server where it was instituted

    for the purposes of the removed Raft lease client.
    
    The "dropped" error is removed, as we no longer emit it anywhere.
    manadart committed Dec 16, 2022
    Configuration menu
    Copy the full SHA
    43242ff View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6b2e8f0 View commit details
    Browse the repository at this point in the history
  3. Adds a fallback for unique constraint violation errors by interrogating

    the error string.
    
    This is intended as a temporary measure which we work out how to ensure
    detection with Dqlite codes.
    manadart committed Dec 16, 2022
    Configuration menu
    Copy the full SHA
    82d7fad View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e0fe075 View commit details
    Browse the repository at this point in the history