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

If DisableInitialHostLookup, Update Hosts On First Ring Refresh #1722

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

amcrn
Copy link

@amcrn amcrn commented Sep 8, 2023

If DisableInitialHostLookup is enabled, the Host IDs are random UUIDs. Therefore, on the first ring refresh, remove the hosts and re-add them back and refill the pools.

Closes #1721

If DisableInitialHostLookup is enabled, the Host IDs are random UUIDs. Therefore, on the first ring refresh, remove the hosts and re-add them back and refill the pools.

Closes gocql#1721
@martin-sucha
Copy link
Contributor

Hi! Thanks for the pull request!

In general the change looks good to me.

Could you please update AUTHORS file as per CONTRIBUTING.md?

Also it seems that some tests are now failing. Could you please check them?

I wonder if we could also add a test case to ensure that #1721 does not re-occur later. Maybe something like TestRingDiscovery? 🤔

@amcrn
Copy link
Author

amcrn commented Sep 11, 2023

@martin-sucha Alright, I believe the tests should be passing now, and I added an integration test

@amcrn
Copy link
Author

amcrn commented Nov 28, 2023

Hey there @martin-sucha, any chance you could take a look at this for merge? Cheers!

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.

If DisableInitialHostLookup, Network Instability Can Cause Prolonged "no hosts available in pool"
2 participants