-
Notifications
You must be signed in to change notification settings - Fork 135
CASSANDRA-19103 fix counter test #246
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
base: trunk
Are you sure you want to change the base?
Conversation
| # nodes that are alive | ||
| nodes[1].stop(wait=True, wait_other_notice=False) | ||
| nodes[1].update_startup_byteman_script(mk_bman_path('gossip_alive_callback_sleep.btm')) | ||
| nodes[1].stop(wait=True, wait_other_notice=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is here to tell nodes which are still up that the second node went offline. Without that, it will still think that the second node is up.
| if cluster.version() < '5.1': | ||
| nodes[1].update_startup_byteman_script(mk_bman_path('gossip_alive_callback_sleep.btm')) | ||
|
|
||
| nodes[1].start(no_wait=True, wait_other_notice=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here we do not wait for other nodes to notice the second one is up, it will be detected on their own when the logic is correct. Until they see the second node JOINED after we started it, they will never select that on their own.
| METHOD findSuitableEndpoint | ||
| AT EXIT | ||
| BIND isthere:boolean = $localEndpoints.contains(org.apache.cassandra.locator.InetAddressAndPort.getByName("127.0.0.2")); | ||
| BIND isthere:boolean = $localReplicas.stream().anyMatch(r -> { try { return r.endpoint().equals(org.apache.cassandra.locator.InetAddressAndPort.getByName("127.0.0.2")); } catch (Throwable t) { return false; } }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
localEndpoints are called localReplicas in 4.0+ and it is a collection of Replicas, not InetAddress(WithPort)
d95e55f to
f6e5e87
Compare
f6e5e87 to
266222f
Compare
266222f to
9434d27
Compare
9434d27 to
cc1204e
Compare
No description provided.