mirror of
https://github.com/apache/druid.git
synced 2025-02-22 10:16:12 +00:00
Added a new revised IT group BackwardCompatibilityMain. The idea is to catch potential backward compatibility issues that may arise during rolling upgrade. This test group runs a docker-compose cluster with Overlord & Coordinator service on the previous druid version. Following env vars are required in the GHA file .github/workflows/unit-and-integration-tests-unified.yml to run this test DRUID_PREVIOUS_VERSION -> Previous druid version to test backward incompatibility. DRUID_PREVIOUS_VERSION_DOWNLOAD_URL -> URL to fetch the tar.
112 lines
3.1 KiB
YAML
112 lines
3.1 KiB
YAML
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
# this work for additional information regarding copyright ownership.
|
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
# (the "License"); you may not use this file except in compliance with
|
|
# the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
networks:
|
|
druid-it-net:
|
|
name: druid-it-net
|
|
ipam:
|
|
config:
|
|
- subnet: 172.172.172.0/24
|
|
|
|
services:
|
|
zookeeper:
|
|
extends:
|
|
file: ../Common/dependencies.yaml
|
|
service: zookeeper
|
|
|
|
metadata:
|
|
extends:
|
|
file: ../Common/dependencies.yaml
|
|
service: metadata
|
|
|
|
coordinator:
|
|
extends:
|
|
file: ../Common/druid.yaml
|
|
service: coordinator
|
|
image: ${DRUID_PREVIOUS_IT_IMAGE_NAME}
|
|
container_name: coordinator
|
|
environment:
|
|
- DRUID_INTEGRATION_TEST_GROUP=${DRUID_INTEGRATION_TEST_GROUP}
|
|
# The frequency with which the coordinator polls the database
|
|
# for changes. The DB population code has to wait at least this
|
|
# long for the coordinator to notice changes.
|
|
- druid_manager_segments_pollDuration=PT5S
|
|
- druid_coordinator_period=PT10S
|
|
depends_on:
|
|
- zookeeper
|
|
- metadata
|
|
|
|
overlord:
|
|
extends:
|
|
file: ../Common/druid.yaml
|
|
service: overlord
|
|
image: ${DRUID_PREVIOUS_IT_IMAGE_NAME}
|
|
container_name: overlord
|
|
environment:
|
|
- DRUID_INTEGRATION_TEST_GROUP=${DRUID_INTEGRATION_TEST_GROUP}
|
|
depends_on:
|
|
- zookeeper
|
|
- metadata
|
|
|
|
broker:
|
|
extends:
|
|
file: ../Common/druid.yaml
|
|
service: broker
|
|
environment:
|
|
- DRUID_INTEGRATION_TEST_GROUP=${DRUID_INTEGRATION_TEST_GROUP}
|
|
depends_on:
|
|
- zookeeper
|
|
|
|
router:
|
|
extends:
|
|
file: ../Common/druid.yaml
|
|
service: router
|
|
environment:
|
|
- DRUID_INTEGRATION_TEST_GROUP=${DRUID_INTEGRATION_TEST_GROUP}
|
|
depends_on:
|
|
- zookeeper
|
|
|
|
historical:
|
|
extends:
|
|
file: ../Common/druid.yaml
|
|
service: historical
|
|
environment:
|
|
- DRUID_INTEGRATION_TEST_GROUP=${DRUID_INTEGRATION_TEST_GROUP}
|
|
depends_on:
|
|
- zookeeper
|
|
|
|
middlemanager:
|
|
extends:
|
|
file: ../Common/druid.yaml
|
|
service: middlemanager
|
|
environment:
|
|
- DRUID_INTEGRATION_TEST_GROUP=${DRUID_INTEGRATION_TEST_GROUP}
|
|
- druid_msq_intermediate_storage_enable=true
|
|
- druid_msq_intermediate_storage_type=local
|
|
- druid_msq_intermediate_storage_basePath=/shared/durablestorage/
|
|
- druid_export_storage_baseDir=/
|
|
volumes:
|
|
# Test data
|
|
- ../../resources:/resources
|
|
depends_on:
|
|
- zookeeper
|
|
|
|
kafka:
|
|
extends:
|
|
file: ../Common/dependencies.yaml
|
|
service: kafka
|
|
depends_on:
|
|
- zookeeper
|