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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump xandra from 0.14.0 to 0.19.0 #86

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 6, 2024

Bumps xandra from 0.14.0 to 0.19.0.

Changelog

Sourced from xandra's changelog.

v0.19.0

Features

  • Add :max_concurrent_requests_per_connection option when starting single and cluster connections.

Bug Fixes

  • Fix a memory leak in Xandra.Connection.
  • Raise on unknown options when starting Xandra.Cluster.
  • Increase the default TCP/SSL buffer to ~1Mb and make it configurable. This should reduce the number of possible request timeouts across connections.
  • Fix an error that would happen when checking out connections from a cluster and those connections going down right after being checked out.

v0.18.1

Bug Fixes

  • Fix a memory leak that would happen especially when preparing queries. We recommend everyone to update if you're on 0.18.0, since this is a low-risk release with minimal changes.

v0.18.0

This is a big release. 馃殌

The main deal here is that we removed the db_connection underlying library, and completely rewrote Xandra's internal connection to be able to make concurrent requests. This issue has a little more context around this decision. To make these changes possible, we also had to require Elixir v1.15 or later.

This change is breaking, and affects Xandra pretty significantly. The user-facing changes are:

  • Xandra doesn't start a pool of connections anymore, only a single connection. Pooling is on you. We recommend registry-based pooling if you want to keep the single-node aspect of Xandra. Alternatively, use Xandra.Cluster with a single node (Xandra.Cluster supports pooling). We might eventually add built-in registry-based pooling, but we're evaluating it.

  • Xandra.start_link/1 doesn't support all DBConnection.start_link/2 options anymore. Make sure to refer to the updated documentation for Xandra.start_link/1 to know the exact supported options.

  • Xandra.execute/2,3,4 and Xandra.prepare/2,3 don't support all DBConnection options anymore. Check their documentation for more information.

Below is a detailed list of all the changes.

Breaking Changes

  • The Xandra module doesn't support pooling anymore and is now only a single connection.
  • Removed the Xandra.db_connection_start_option/0 type.
  • Removed the Xandra.xandra_start_option/0 type.
  • Removed some DBConnection.start_link/2 options in Xandra.start_link/1.
  • Removed the :pool_size option in Xandra.start_link/1.
  • Require Elixir 1.15+.

Improvements and Bug Fixes

  • Make retry strategies cluster aware, by adding the {:retry, new_options, new_state, conn_pid} return value to the retry/3 callback. See the updated documentation for Xandra.RetryStrategy.
  • Support GenServer.start_link/3 options in Xandra.Cluster.start_link/1 (like :spawn_opt and friends).
  • Add the :queue_checkouts_before_connecting option to Xandra.Cluster.start_link/1 to queue checkout requests in the cluster until at least one connection to one node is established. This is intended to mostly replace :sync_connect.
  • Fix a few bugs with rogue data in the native protocol parser.

... (truncated)

Commits
  • e5c6cd7 Release v0.19.0
  • 2a7dc8e Catch :noproc errors on cluster pools (#365)
  • 820c34d Set connection transport buffer for active socket (#363)
  • 077cc5f Raise on unknown conn opts when starting cluster (#361)
  • bee3984 Clean up timeouts in the conn and add :max_concurrent_requests_per_connection...
  • e08907a Fix an Elixir range warning in a test
  • 33cd538 Fix memory leak in Xandra.Connection (#355)
  • b45e829 Bump Elixir to 1.16 in CI (#352)
  • a21d162 Release v0.18.1
  • c4b8fbf Fix monitor leak in Xandra.Connection (#351)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [xandra](https://github.com/lexhide/xandra) from 0.14.0 to 0.19.0.
- [Changelog](https://github.com/whatyouhide/xandra/blob/main/CHANGELOG.md)
- [Commits](whatyouhide/xandra@v0.14.0...v0.19.0)

---
updated-dependencies:
- dependency-name: xandra
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label May 6, 2024
@jarlah
Copy link
Collaborator

jarlah commented May 15, 2024

@dependabot ignore this major versio

@dependabot dependabot bot closed this May 15, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github May 15, 2024

OK, I won't notify you about xandra again, unless you re-open this PR.

@dependabot dependabot bot deleted the dependabot/hex/xandra-0.19.0 branch May 15, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant