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

fix wildcard interconnect address type #936

Merged
merged 4 commits into from
Jan 9, 2025
Merged

fix wildcard interconnect address type #936

merged 4 commits into from
Jan 9, 2025

Conversation

Stolb27
Copy link
Collaborator

@Stolb27 Stolb27 commented Apr 13, 2024

Fix wildcard interconnect address type

GPDB used to fail to setup UDP interconnect sockets when
gp_interconnect_address_type GUC was set to wildcard mode. The problem was caused
by passing invalid set of arguments to getaddinfo library function and
consequent getting EAI_NONAME errno. interconnect_address is null for wildcard
address type. In this case service arg of getaddrinfo must not be null, because
either node or service may be null according to man page of getaddrinfo(3).

The mentioned problem was caused by 50748b7. So partially reverted this patch.
Removed duplicated assertion, already checked for unicast interconnect few
lines above.

A unit test for this case is provided too. The default interconnect address
type was explicitly point for existing tests. IPv6 wildcard test was fully
duplicated by existing unicast test and was reworked to test wildcard
configuration. It's expected that Linux returns IPv4 address first for wildcard
request even on machines with IPv6. So, pined it by this test.

@Stolb27 Stolb27 requested a review from whitehawk April 13, 2024 20:16
@whitehawk

This comment was marked as resolved.

@whitehawk

This comment was marked as resolved.

@whitehawk

This comment was marked as resolved.

Partially revert 50748b7 changes that broke down wildcard interconnect
address type handling for gpdb 7. Removed duplicated assertion, already
checked for unicast interconnect few lines above. interconnect_address
is null for wildcard address type. In this case service arg of
getaddrinfo must not be null, because either node or service may be null
according to man page.

A unit test for this case provided too.
@Stolb27 Stolb27 changed the base branch from adb-7.1.0 to adb-7.2.0 November 3, 2024 09:42
@whitehawk
Copy link

Please start the summary with a capital letter:
'fix wildcard interconnect address type' -> 'Fix wildcard interconnect address type'

@whitehawk

This comment was marked as resolved.

@Stolb27 Stolb27 merged commit 8492198 into adb-7.2.0 Jan 9, 2025
5 checks passed
@Stolb27 Stolb27 deleted the ADBDEV-4993 branch January 9, 2025 07:11
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.

3 participants