Skip to content

Conversation

muzarski
Copy link
Contributor

Fixes: #239

This pr implements cass_cluster_set_local_addres[_n] and cass_cluster_set_local_port_range.

Integration tests:

There will be a follow-up PR which enables the integration tests that we "unlocked" by implementing these. The reason is that it requires to adjust some test logic (e.g. logs filtering) and error handling. Don't want to introduce too much noise to this PR.

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • PR description sums up the changes and reasons why they should be introduced.
  • I have implemented Rust unit tests for the features/changes introduced.
  • [ ] I have enabled appropriate tests in .github/workflows/build.yml in gtest_filter.
  • [ ] I have enabled appropriate tests in .github/workflows/cassandra.yml in gtest_filter.

@muzarski muzarski added this to the 0.5 milestone Apr 15, 2025
@muzarski muzarski self-assigned this Apr 15, 2025
@muzarski muzarski requested review from Lorak-mmk and wprzytula April 15, 2025 13:15
@muzarski muzarski force-pushed the local_address_and_port_range branch from e09a8d7 to 8a59fb6 Compare April 16, 2025 09:13
@muzarski
Copy link
Contributor Author

v2: cass_cluster_set_local_address now returns LIB_BAD_PARAMS if user provided unparsable ip address string. Added the test case for non-utf8 bytes slice.

@muzarski muzarski requested review from Lorak-mmk and wprzytula April 16, 2025 09:16
In addition, set the default value and implemented unit test.
Set the default value (ephemeral port range) and implemented unit test.
@muzarski muzarski force-pushed the local_address_and_port_range branch from 8a59fb6 to 0500f2e Compare April 16, 2025 10:53
@muzarski
Copy link
Contributor Author

v2.1: Rebased on master (fixed some import conflict)

@muzarski muzarski merged commit 57ae5bf into scylladb:master Apr 16, 2025
12 checks passed
@muzarski muzarski deleted the local_address_and_port_range branch April 16, 2025 12:36
@wprzytula wprzytula mentioned this pull request Jun 17, 2025
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.

Implement local bind address and port range configuration

3 participants