Fix net.peer.* setting for Cassandra 4.+ #1482
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#1427 removed max java version to run Cassandra 4 tests. This allowed
testLatestDep
job to actually run them (as it uses java 11 to run). This exposed that starting from some version of Cassandra client driver the value returned bynode.getBroadcastRpcAddress()
changed to0.0.0.0
in our tests. This broke tests.But this also exposed that we used wrong address for
net.peer.*
attributes in the first place.BroadcastRpcAddress
means the address that Cassandra server accepts RPC connections. In case of containers/proxy this may be completely different address from the one used by client. Butnode.getEndPoint()
returns "The information that the driver uses to connect to the node". Which seems like the correct one.Closes #1478
Closes #1473
Closes #1472
Closes #1461
Closes #1460