Skip to content

Conversation

rtib
Copy link
Owner

@rtib rtib commented Apr 25, 2025

Implement shutdown logic when the connected Cassandra node leaves the ring.

  • Context.java

    • Implement the onDown method to call the shutdown method when the node goes down.
    • Implement the onRemove method to call the shutdown method when the node is removed.
  • CqlMetricsCollectorDaemon.java

    • Add a shutdownService method to call the deactivate method.
    • Call the shutdownService method when the node leaves the ring.

For more details, open the Copilot Workspace session.

Implement shutdown logic when the connected Cassandra node leaves the ring.

* **Context.java**
  - Implement the `onDown` method to call the `shutdown` method when the node goes down.
  - Implement the `onRemove` method to call the `shutdown` method when the node is removed.

* **CqlMetricsCollectorDaemon.java**
  - Add a `shutdownService` method to call the `deactivate` method.
  - Call the `shutdownService` method when the node leaves the ring.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/rtib/cql-metrics-collector?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant