Skip to content

Commit ef0c766

Browse files
author
Alexey Masterov
committed
[PGPRO-5554] Make add_node get port via mm_get_free_port from Cluster.pm in order to fix rare error Could not bind IPv4 address in TAP tests. tags: multimaster
1 parent 7ca0008 commit ef0c766

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Cluster.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ sub add_node()
340340
{
341341
my ($self) = @_;
342342

343-
my $new_node = get_new_node("node@{[$#{$self->{nodes}} + 2]}");
343+
my $new_node = get_new_node("node@{[$#{$self->{nodes}} + 2]}",
344+
(port => mm_get_free_port()));
344345
push(@{$self->{nodes}}, $new_node);
345346

346347
return $#{$self->{nodes}};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy