Skip to content

Commit

Permalink
alter precedence in favor of ipv4 during resolving (#657)
Browse files Browse the repository at this point in the history
gpdb test suite requires enabled ipv6 since 7f3c91f. But there is at
least one src/test/ssl test that expects resolving to ipv4 address and
fails in the ipv6 environment with:

```
psql: FATAL:  no pg_hba.conf entry for host "2001:db8:1::242:ac11:2",
user "ssltestuser", database "postgres", SSL on
pg_regress: cannot read the result
(using postmaster on 9f17c91f4c76, port 6000)
```

so we at least temporary try to change precedence of name resolution in
favor of ipv4
  • Loading branch information
Stolb27 authored Dec 6, 2023
1 parent fd5939d commit 6f87a84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arenadata/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ RUN yum -y install centos-release-scl && \
echo -e 'source /opt/rh/devtoolset-7/enable' >> /opt/gcc_env.sh && \
echo -e '#!/bin/sh' >> /etc/profile.d/jdk_home.sh && \
echo -e 'export JAVA_HOME=/etc/alternatives/java_sdk' >> /etc/profile.d/jdk_home.sh && \
echo -e 'export PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile.d/jdk_home.sh
echo -e 'export PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile.d/jdk_home.sh && \
echo -e 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf

RUN rpm -i $sigar && rpm -i $sigar_headers

Expand Down

0 comments on commit 6f87a84

Please sign in to comment.