Skip to content

Commit e3b7f65

Browse files
authored
YDB FQ: mitigate DNS server misbehaving error in Docker-based YDB Connector test (#9172)
1 parent 45ddb73 commit e3b7f65

File tree

9 files changed

+43
-40
lines changed

9 files changed

+43
-40
lines changed

ydb/library/yql/providers/generic/connector/tests/datasource/clickhouse/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
- /var
1717
fq-connector-go:
1818
container_name: fq-tests-ch-fq-connector-go
19-
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.8-rc.2@sha256:12d15f2e82608bc4e64fa91c549361c587754aeb0e6c6a2cee749caebb11baf8
19+
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.9-rc.2@sha256:ebaefb6a93d8d1504436e222f3eb106b38ca944f91ccdd12f118172e5986633b
2020
ports:
2121
- 2130
2222
volumes:
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
services:
22
fq-connector-go:
33
container_name: fq-tests-mssql-fq-connector-go
4-
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.8-rc.2@sha256:12d15f2e82608bc4e64fa91c549361c587754aeb0e6c6a2cee749caebb11baf8
4+
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.9-rc.2@sha256:ebaefb6a93d8d1504436e222f3eb106b38ca944f91ccdd12f118172e5986633b
55
ports:
6-
- 2130
6+
- 2130
77
volumes:
8-
- ../../fq-connector-go/:/opt/ydb/cfg/
8+
- ../../fq-connector-go/:/opt/ydb/cfg/
99
ms_sql_server:
1010
build:
1111
context: ./init
@@ -17,5 +17,5 @@ services:
1717
LANG: ru_RU.UTF-8
1818
SA_PASSWORD: Qwerty12345!
1919
ports:
20-
- 1433:1433
20+
- 1433:1433
2121
version: "3.4"

ydb/library/yql/providers/generic/connector/tests/datasource/mysql/docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
fq-connector-go:
33
container_name: fq-tests-mysql-fq-connector-go
4-
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.8-rc.2@sha256:12d15f2e82608bc4e64fa91c549361c587754aeb0e6c6a2cee749caebb11baf8
4+
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.9-rc.2@sha256:ebaefb6a93d8d1504436e222f3eb106b38ca944f91ccdd12f118172e5986633b
55
ports:
66
- 2130
77
volumes:
@@ -14,11 +14,11 @@ services:
1414
image: mirror.gcr.io/library/mysql@sha256:1579fe3a97a436cc10824fc771a07fcedc92213e7ab7604eb5d2976ca419abc8
1515
ports:
1616
- 3306
17-
volumes:
18-
- ./init:/docker-entrypoint-initdb.d
19-
- ./custom.cnf:/etc/mysql/conf.d/custom.cnf
2017
tmpfs:
2118
- /run
2219
- /tmp
2320
- /var
21+
volumes:
22+
- ./init:/docker-entrypoint-initdb.d
23+
- ./custom.cnf:/etc/mysql/conf.d/custom.cnf
2424
version: "3.4"

ydb/library/yql/providers/generic/connector/tests/datasource/oracle/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
fq-connector-go:
33
container_name: fq-tests-oracle-fq-connector-go
4-
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.8-rc.2@sha256:12d15f2e82608bc4e64fa91c549361c587754aeb0e6c6a2cee749caebb11baf8
4+
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.9-rc.2@sha256:ebaefb6a93d8d1504436e222f3eb106b38ca944f91ccdd12f118172e5986633b
55
ports:
66
- 2130
77
volumes:

ydb/library/yql/providers/generic/connector/tests/datasource/postgresql/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
fq-connector-go:
33
container_name: fq-tests-pg-fq-connector-go
4-
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.8-rc.2@sha256:12d15f2e82608bc4e64fa91c549361c587754aeb0e6c6a2cee749caebb11baf8
4+
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.9-rc.2@sha256:ebaefb6a93d8d1504436e222f3eb106b38ca944f91ccdd12f118172e5986633b
55
ports:
66
- 2130
77
volumes:

ydb/library/yql/providers/generic/connector/tests/datasource/ydb/docker-compose.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,24 @@ services:
22
fq-connector-go:
33
command: |
44
sh -c "
5-
echo \"$$(dig fq-tests-ydb-ydb +short) fq-tests-ydb-ydb\" >> /etc/hosts; cat /etc/hosts;
5+
apk add dnsmasq bind;
6+
echo \"address=/fq-tests-ydb-ydb/$$(dig fq-tests-ydb-ydb +short)\" >> /etc/dnsmasq.conf;
7+
echo \"nameserver 127.0.0.1\" > /etc/resolv.conf;
8+
dnsmasq;
69
/opt/ydb/bin/fq-connector-go server -c /opt/ydb/cfg/fq-connector-go.yaml"
710
container_name: fq-tests-ydb-fq-connector-go
8-
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.8-rc.2@sha256:12d15f2e82608bc4e64fa91c549361c587754aeb0e6c6a2cee749caebb11baf8
11+
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.9-rc.2@sha256:ebaefb6a93d8d1504436e222f3eb106b38ca944f91ccdd12f118172e5986633b
912
ports:
1013
- 2130
1114
volumes:
1215
- ../../fq-connector-go/:/opt/ydb/cfg/
1316
ydb:
1417
container_name: fq-tests-ydb-ydb
1518
environment:
19+
DB_USE_IN_MEMORY_PDISKS: "true"
1620
POSTGRES_PASSWORD: password
1721
POSTGRES_USER: user
1822
YDB_DEFAULT_LOG_LEVEL: DEBUG
19-
DB_USE_IN_MEMORY_PDISKS: "true"
2023
hostname: fq-tests-ydb-ydb
2124
image: ghcr.io/ydb-platform/local-ydb:latest@sha256:9045e00afec1923dc3277564c7b2f829087c2115f45f18e1d38b80bb89f98be6
2225
volumes:

ydb/library/yql/providers/generic/connector/tests/join/docker-compose.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,30 @@ services:
88
CLICKHOUSE_USER: user
99
image: mirror.gcr.io/clickhouse/clickhouse-server:23-alpine@sha256:d75017307e76d1bca81a5ac7ada94620567782c0610541f525d1e443e23f76e3
1010
ports:
11-
- 9000
12-
- 8123
11+
- 9000
12+
- 8123
1313
fq-connector-go:
1414
container_name: fq-tests-join-fq-connector-go
15-
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.8-rc.2@sha256:12d15f2e82608bc4e64fa91c549361c587754aeb0e6c6a2cee749caebb11baf8
15+
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.9-rc.2@sha256:ebaefb6a93d8d1504436e222f3eb106b38ca944f91ccdd12f118172e5986633b
1616
ports:
17-
- 2130
17+
- 2130
1818
volumes:
19-
- ../fq-connector-go/:/opt/ydb/cfg/
19+
- ../fq-connector-go/:/opt/ydb/cfg/
2020
postgresql:
2121
command:
22-
- postgres
23-
- -c
24-
- log_statement=all
25-
- -c
26-
- log_connections=on
27-
- -c
28-
- log_disconnections=on
22+
- postgres
23+
- -c
24+
- log_statement=all
25+
- -c
26+
- log_connections=on
27+
- -c
28+
- log_disconnections=on
2929
container_name: fq-tests-join-postgresql
3030
environment:
3131
POSTGRES_DB: db
3232
POSTGRES_PASSWORD: password
3333
POSTGRES_USER: user
3434
image: mirror.gcr.io/library/postgres:15-bullseye@sha256:2e89ed90224245851ea2b01e0b20c4b893e69141eb36e7a1cece7fb9e19f21f0
3535
ports:
36-
- 5432
36+
- 5432
3737
version: "3.4"

ydb/tests/fq/generic/analytics/docker-compose.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@ services:
77
CLICKHOUSE_PASSWORD: password
88
CLICKHOUSE_USER: user
99
image: clickhouse/clickhouse-server:23-alpine@sha256:b078c1cd294632afa2aeba3530e7ba2e568513da23304354f455a25fab575c06
10-
volumes:
11-
- ./clickhouse:/docker-entrypoint-initdb.d
1210
tmpfs:
1311
- /run
1412
- /tmp
1513
- /var
14+
volumes:
15+
- ./clickhouse:/docker-entrypoint-initdb.d
1616
fq-connector-go:
1717
command: |
1818
sh -c "
1919
echo \"$$(dig tests-fq-generic-analytics-ydb +short) tests-fq-generic-analytics-ydb\" >> /etc/hosts; cat /etc/hosts;
2020
/opt/ydb/bin/fq-connector-go server -c /opt/ydb/cfg/fq-connector-go.yaml"
2121
container_name: tests-fq-generic-analytics-fq-connector-go
22-
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.8-rc.2@sha256:12d15f2e82608bc4e64fa91c549361c587754aeb0e6c6a2cee749caebb11baf8
22+
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.9-rc.2@sha256:ebaefb6a93d8d1504436e222f3eb106b38ca944f91ccdd12f118172e5986633b
2323
ports:
2424
- "2130"
2525
greenplum:
2626
container_name: tests-fq-generic-analytics-greenplum
2727
image: ghcr.io/ydb-platform/fq-connector-go_greenplum:6.25.3-6432@sha256:9e862b05719b289b447562fbce6c003916a764a549f924a4175eecd7e7891a0b
28-
volumes:
29-
- ./greenplum/init_db.sh:/init_db.sh
3028
tmpfs:
3129
- /run
3230
- /tmp
3331
- /var
32+
volumes:
33+
- ./greenplum/init_db.sh:/init_db.sh
3434
postgresql:
3535
command: -p 6432
3636
container_name: tests-fq-generic-analytics-postgresql
@@ -39,19 +39,19 @@ services:
3939
POSTGRES_PASSWORD: password
4040
POSTGRES_USER: user
4141
image: postgres:15-bullseye@sha256:3411b9f2e5239cd7867f34fcf22fe964230f7d447a71d63c283e3593d3f84085
42-
volumes:
43-
- ./postgresql:/docker-entrypoint-initdb.d
4442
tmpfs:
4543
- /run
4644
- /tmp
4745
- /var
46+
volumes:
47+
- ./postgresql:/docker-entrypoint-initdb.d
4848
ydb:
4949
container_name: tests-fq-generic-analytics-ydb
5050
environment:
51+
DB_USE_IN_MEMORY_PDISKS: "true"
5152
POSTGRES_PASSWORD: password
5253
POSTGRES_USER: user
5354
YDB_DEFAULT_LOG_LEVEL: DEBUG
54-
DB_USE_IN_MEMORY_PDISKS: "true"
5555
hostname: tests-fq-generic-analytics-ydb
5656
image: ghcr.io/ydb-platform/local-ydb:latest@sha256:9045e00afec1923dc3277564c7b2f829087c2115f45f18e1d38b80bb89f98be6
5757
volumes:

ydb/tests/fq/generic/streaming/docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ services:
55
echo \"$$(dig tests-fq-generic-streaming-ydb +short) tests-fq-generic-streaming-ydb\" >> /etc/hosts; cat /etc/hosts;
66
/opt/ydb/bin/fq-connector-go server -c /opt/ydb/cfg/fq-connector-go.yaml"
77
container_name: tests-fq-generic-streaming-fq-connector-go
8-
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.8-rc.2@sha256:12d15f2e82608bc4e64fa91c549361c587754aeb0e6c6a2cee749caebb11baf8
8+
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.9-rc.2@sha256:ebaefb6a93d8d1504436e222f3eb106b38ca944f91ccdd12f118172e5986633b
99
ports:
10-
- "2130"
10+
- "2130"
1111
ydb:
1212
container_name: tests-fq-generic-streaming-ydb
1313
environment:
14+
DB_USE_IN_MEMORY_PDISKS: "true"
1415
POSTGRES_PASSWORD: password
1516
POSTGRES_USER: user
1617
YDB_DEFAULT_LOG_LEVEL: DEBUG
17-
DB_USE_IN_MEMORY_PDISKS: "true"
1818
hostname: tests-fq-generic-streaming-ydb
1919
image: ghcr.io/ydb-platform/local-ydb:latest@sha256:9045e00afec1923dc3277564c7b2f829087c2115f45f18e1d38b80bb89f98be6
2020
volumes:
21-
- ./ydb/init_ydb:/init_ydb
22-
- ./ydb/01_basic.sh:/01_basic.sh
21+
- ./ydb/init_ydb:/init_ydb
22+
- ./ydb/01_basic.sh:/01_basic.sh
2323
version: "3.4"

0 commit comments

Comments
 (0)