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

router: delete vshard.router.bucket_discovery #515

Merged

Conversation

Astronomax
Copy link
Contributor

@Astronomax Astronomax commented Feb 25, 2025

The function vshard.router.bucket_discovery (marked "Router public API" in doc) does absolutely the same as vshard.router.route (marked "Router internal API" in doc). There is also another completely internal function bucket_resolve which returns the same as bucket_discovery.

Actually bucket_discovery is not used internally, only bucket_resolve is used. Let's remove and not export bucket_discovery, leaving only bucket_resolve for internal needs.

Closes #503

@Astronomax Astronomax marked this pull request as draft February 25, 2025 09:06
@Astronomax Astronomax force-pushed the gh-503-deprecate-bucket-discovery branch from 56a4b04 to 69ecf83 Compare February 25, 2025 09:28
@Astronomax Astronomax marked this pull request as ready for review February 25, 2025 20:13
@Astronomax Astronomax force-pushed the gh-503-deprecate-bucket-discovery branch 2 times, most recently from 059ca38 to ce29db1 Compare February 25, 2025 20:32
The function `vshard.router.bucket_discovery` (marked "Router public API"
in doc) does absolutely the same as `vshard.router.route` (marked
"Router internal API" in doc). There is also another completely internal
function `bucket_resolve` which returns the same as `bucket_discovery`.

Actually `bucket_discovery` is not used internally, only `bucket_resolve`
is used. Let's remove and not export `bucket_discovery`, leaving only
`bucket_resolve` for internal needs.

Closes tarantool#503

@TarantoolBot document
Title: vshard: `vshard.router.bucket_discovery` is no longer available

Root document: New page - https://www.tarantool.io/ru/doc/latest/reference/reference_rock/vshard/vshard_router/#router-api-bucket-discovery

Previously, `vshard.router.bucket_discovery` was marked in the
documentation as "Router internal API". Now it is not available at all.
@Astronomax Astronomax force-pushed the gh-503-deprecate-bucket-discovery branch from ce29db1 to edfe4b6 Compare February 25, 2025 20:48
Copy link
Contributor

@Serpentian Serpentian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! No objections.

@Serpentian Serpentian assigned Astronomax and unassigned Serpentian Feb 26, 2025
@Serpentian Serpentian requested a review from Gerold103 February 26, 2025 05:35
@Serpentian Serpentian assigned Gerold103 and unassigned Astronomax Feb 26, 2025
Copy link
Collaborator

@Gerold103 Gerold103 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch!

@Gerold103 Gerold103 merged commit fab0a54 into tarantool:master Mar 3, 2025
8 checks passed
@Gerold103
Copy link
Collaborator

@Astronomax please, cherry-pick to EE.

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.

router: deprecate vshard.router.bucket_discovery
3 participants