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

refactor(FQDN): further more refator on idl/dsn.layer2.thrift #2049

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

acelyc111
Copy link
Member

@acelyc111 acelyc111 commented Jun 24, 2024

This is a further refactor on idl/dsn.layer2.thrift, the main effects are on
partition_configuration structure.

To keep compatible and support rolling update, it should be accepted that partial
servers or clients with the FQDN supporting feature and partial of them without
the feature. In this patch, macros like GET_HOST_PORT and GET_HOST_PORTS are
used in almost all places where partition_configuration objects appear. (Unit
tests don't require this because the tests must in the latest version which has
this feature).

When invoking a RPC, it's preferred to use host_port because we suppose that the
IP address is possible to be changed, but the hostname is permanent.

When received a proposol request, the optional hp_primary and hp_secondaries
will be filled by the related host_ports of the primary and secondaries and
fields. Then we can simplily deal with the logic.

@acelyc111 acelyc111 force-pushed the fqdn_partition_configuration_2 branch from 94de408 to e232ba6 Compare July 16, 2024 16:32
@github-actions github-actions bot removed the thrift label Jul 22, 2024
@acelyc111 acelyc111 force-pushed the fqdn_partition_configuration_2 branch 2 times, most recently from 2284105 to e04715e Compare July 22, 2024 08:40
@acelyc111 acelyc111 marked this pull request as ready for review July 23, 2024 00:15
@acelyc111 acelyc111 changed the title refactor(FQDN): feather refator on idl/dsn.layer2.thrift refactor(FQDN): further more refator on idl/dsn.layer2.thrift Jul 24, 2024
@acelyc111 acelyc111 force-pushed the fqdn_partition_configuration_2 branch 4 times, most recently from ce0abb5 to a73ffe4 Compare September 23, 2024 04:03
@acelyc111
Copy link
Member Author

acelyc111 commented Sep 24, 2024

Please ignore the clang-tidy errors, because there are so many errors, it would introduce too many clang-tidy related changes as well which may cause the main changes of this pull request hard to distinguish and review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant