mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-09 06:42:57 +00:00
* fix: logical region can't find region routes * feat: fetch partitions info in batch * refactor: rename batch functions * refactor: rename DdlTaskExecutor to ProcedureExecutor * feat: impl migrate_region and query_procedure_state for ProcedureExecutor * feat: adds SQL function procedure_state and finish migrate_region impl * fix: constant vector * feat: unit tests for migrate_region and procedure_state * test: test region migration by SQL * fix: compile error after rebeasing * fix: clippy warnings * feat: ensure procedure_state and migrate_region can be only called under greptime catalog * fix: license header
Setup tests for multiple storage backend
To run the integration test, please copy .env.example to .env in the project root folder and change the values on need.
Take s3 for example. You need to set your S3 bucket, access key id and secret key:
# Settings for s3 test
GT_S3_BUCKET=S3 bucket
GT_S3_REGION=S3 region
GT_S3_ACCESS_KEY_ID=S3 access key id
GT_S3_ACCESS_KEY=S3 secret access key
Run
Execute the following command in the project root folder:
cargo test integration
Test s3 storage:
cargo test s3
Test oss storage:
cargo test oss
Test azblob storage:
cargo test azblob
Setup tests with Kafka wal
To run the integration test, please copy .env.example to .env in the project root folder and change the values on need.
GT_KAFKA_ENDPOINTS = localhost:9092
Setup kafka standalone
cd tests-integration/fixtures/kafka
docker compose -f docker-compose-standalone.yml up