Skip to content

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

Open
acelyc111 wants to merge 6 commits intoapache:masterfrom
acelyc111:fqdn_partition_configuration_2
Open

refactor(FQDN): further more refator on idl/dsn.layer2.thrift#2049
acelyc111 wants to merge 6 commits intoapache:masterfrom
acelyc111:fqdn_partition_configuration_2

Conversation

@acelyc111
Copy link
Copy Markdown
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 5 times, most recently from a73ffe4 to 9b91b8a Compare September 23, 2024 16:07
@acelyc111
Copy link
Copy Markdown
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.

@Samunroyu Samunroyu self-requested a review March 6, 2025 14:50
Comment thread src/replica/replica_config.cpp
@acelyc111 acelyc111 force-pushed the fqdn_partition_configuration_2 branch from 9b91b8a to f9594e4 Compare March 13, 2025 16:09
Samunroyu
Samunroyu previously approved these changes Mar 16, 2025
acelyc111 pushed a commit that referenced this pull request May 21, 2025
This is a further refactor on idl/dsn.layer2.thrift based on
#2049
the main effects are on partition_configuration structure.
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.

3 participants