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

CassandraSinkCluster: topology task now processes events #812

Merged
merged 2 commits into from
Sep 22, 2022

Conversation

rukai
Copy link
Member

@rukai rukai commented Sep 16, 2022

an is_up field is introduced so that nodes that are up/down can be noted as such without completely deleting the node, this will be useful for recovering from scenarios where all nodes go down. (even though there is no such logic for that yet)

Control node selection and regular message routing is changed to use is_up

Work left for future PRs

Currently the topology changes wont take affect until a new connection is made, a future PR will introduce logic to update existing connections.

Another case that is currently not handled yet is when the topology task's control connection goes down.
Currently that is undetectable because we rely on the control connections events.
I believe the solution to that will be transforms reporting timeouts to the topology task (done in a follow up PR)
Another solution could be having a backup control connection.

Because this PR is missing those features I cant integration test it yet without intermittent failures.
So lets try and land this now, and add integration tests when we complete the functionality.

@rukai rukai force-pushed the topology_task_process_events branch 2 times, most recently from ee521a5 to 4b1bee7 Compare September 18, 2022 23:57
@rukai rukai marked this pull request as ready for review September 18, 2022 23:57
@rukai rukai force-pushed the topology_task_process_events branch 2 times, most recently from ee0d6d7 to c219fe5 Compare September 19, 2022 06:22
@rukai rukai marked this pull request as draft September 19, 2022 06:23
@rukai rukai force-pushed the topology_task_process_events branch from c219fe5 to 8d1ace1 Compare September 19, 2022 08:00
@rukai rukai mentioned this pull request Sep 20, 2022
@rukai rukai force-pushed the topology_task_process_events branch 4 times, most recently from bb7215b to ba53a91 Compare September 21, 2022 00:32
@rukai rukai marked this pull request as ready for review September 21, 2022 02:24
@rukai rukai force-pushed the topology_task_process_events branch from ba53a91 to 97b93ac Compare September 21, 2022 04:04
@rukai rukai force-pushed the topology_task_process_events branch from 97b93ac to 744d3e5 Compare September 22, 2022 22:55
@rukai rukai enabled auto-merge (squash) September 22, 2022 23:13
@rukai rukai merged commit ca13587 into shotover:main Sep 22, 2022
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.

3 participants