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

Integration PR: HTTP Management Proxy Implementation #1356

Merged
merged 32 commits into from
Oct 16, 2023

Commits on Oct 3, 2023

  1. Configuration menu
    Copy the full SHA
    9093ed0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    54bd83f View commit details
    Browse the repository at this point in the history
  3. Add Management API agent for http tests (#2)

    Co-authored-by: Miles-Garnsey <miles.garnsey@datastax.com>
    emerkle826 and Miles-Garnsey committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    d49c40b View commit details
    Browse the repository at this point in the history
  4. Refactor getSnapshotDetails into JMX management impl. Put listSnapsho…

    …ts into ICassandraManagementProxy and implement in both HTTP and JMX impls. (#1358)
    Miles-Garnsey committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    f5c88d7 View commit details
    Browse the repository at this point in the history
  5. Implement Http proxy methods for first two acceptance tests (#1359)

    Implement methods:
    - getClusterName
    - getLiveNodes
    - clearSnapshot
    - listSnapshots
    - takeSnapshot
    emerkle826 authored and Miles-Garnsey committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    91a8bdf View commit details
    Browse the repository at this point in the history
  6. Mimic storage notifications using the HTTP API (#1339)

    * Add stubbed polling of job details from the mgmt-api. This will not work without the actual client implementation
    
    Implement using apiClient the triggerRepair, getJobDetails, scheduler as well as add a simple test to ensure the state is managed correctly
    
    * Merge test files after the rebase
    
    * Add a test to verify the behavior of the notifications polling
    
    * Address comments
    burmanm authored and Miles-Garnsey committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    27bc7d0 View commit details
    Browse the repository at this point in the history
  7. Implement schema methods in the HttpManagementProxy (fixes #1344) (#1366

    )
    
    * Implement schema methods in the HttpManagementProxy (fixes #1344)
    olim7t authored and Miles-Garnsey committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    793eba2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f7f5ce4 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f75ab1a View commit details
    Browse the repository at this point in the history
  10. Repair http methods (#1370)

    * Move HTTP repair implementation over to new V2 endpoint.
    
    * Strip out Cassandra <3 repair methods and fix method signatures to always use newer ringrange.
    
    * Fix tests.
    
    * Remove tests for Cassandra <3.
    
    * New cancelAllRepairs http method. More tests.
    
    * Bump version of managment API client in pom.xml to bring in repair methods with correct Long integer type.
    Miles-Garnsey committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    b547152 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5fa2db1 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    97eea41 View commit details
    Browse the repository at this point in the history
  13. Implement HTTP based getTokens, getEndpointToHostId, getLocalEndpoint (

    …#1376)
    
    * Implement HttpCassandraManagementProxy.getEndpointToHostId(), HttpCassandraManagementProxy.getLocalEndpoint(), HttpCassandraManagementProxy.getTokens()
    Miles-Garnsey committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    fc171a4 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    78b34be View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    c16d637 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    e0e5318 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    328b855 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    467c254 View commit details
    Browse the repository at this point in the history
  19. Implement getTokenEndpointMap and getEndpointToHostId, fix getTokens (#…

    …1373)
    
    * Implement getTokenEndpointMap.
    * Fix getTokens
    * Implement getEndpointToHostId.
    
    ---------
    
    Co-authored-by: Miles-Garnsey <miles.garnsey@datastax.com>
    emerkle826 and Miles-Garnsey committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    27487dc View commit details
    Browse the repository at this point in the history
  20. Changes to comments, log outputs and removal of old RunStates (#1405)

    * Remove references to RunState NOT_EXISTING, since they cause spurious errors in tests and this state no longer exists.
    * Remove references too JMX from ClusterFacade and make it more generic.
    Miles-Garnsey committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    1bcef11 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    38c563d View commit details
    Browse the repository at this point in the history
  22. Return cached instance of HttpManagementProxy, do not create a new on…

    …e for each connectImpl call (#1413)
    burmanm authored and Miles-Garnsey committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    dc3cb76 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    d7221a8 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    c0598ae View commit details
    Browse the repository at this point in the history
  25. Use CassandraStorage not MemoryStorage for http acceptance tests.

    Comment out test steps which rely on getPendingCompactions.
    Comment out percent-repaired related test.
    Miles-Garnsey committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    7608832 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    e2d1998 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2023

  1. Implement getPendingCompactions in HttpManagementProxy (#1403)

    * Implement getPendingCompactions in the HttpManagementProxy
    
    Since metrics are now exposed on a different port than the mgmt-api itself, this required to go through the HttpMetricsProxy which got partially implemented for that need.
    It is now able to pull metrics from the metrics endpoint and parse it into GenericMetrics.
    adejanovski committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    b9578bf View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2023

  1. Docker config for HTTP management interface (#1425)

    * Put a hook in the docker container's cassandra-reaper.yml so that the HTTP management proxy can be enabled via environent variable, instead of only through the config file.
    Miles-Garnsey committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    821d106 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2023

  1. Update Management API client (#1426)

    * Update management API client and remove references to notifications in v2 repair requests.
    emerkle826 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    c9d161f View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2023

  1. Configuration menu
    Copy the full SHA
    4cdc4d5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    36a00bd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    accdbc1 View commit details
    Browse the repository at this point in the history