From 573e25a40f752ca0fce9a37cddfca7d998a30913 Mon Sep 17 00:00:00 2001 From: Weny Xu Date: Thu, 13 Jun 2024 17:07:12 +0800 Subject: [PATCH] chore: run fuzz tests with disk cache (#4118) * chore: run fuzz tests with disk cache * fix: print error messages correctly --- .../with-minio-and-cache.yaml | 38 +++++++++++++++++++ .github/workflows/develop.yml | 4 ++ src/catalog/src/information_schema/tables.rs | 4 +- 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 .github/actions/setup-greptimedb-cluster/with-minio-and-cache.yaml diff --git a/.github/actions/setup-greptimedb-cluster/with-minio-and-cache.yaml b/.github/actions/setup-greptimedb-cluster/with-minio-and-cache.yaml new file mode 100644 index 0000000000..acf99adf26 --- /dev/null +++ b/.github/actions/setup-greptimedb-cluster/with-minio-and-cache.yaml @@ -0,0 +1,38 @@ +meta: + config: |- + [runtime] + read_rt_size = 8 + write_rt_size = 8 + bg_rt_size = 8 + + [datanode] + [datanode.client] + timeout = "60s" +datanode: + config: |- + [runtime] + read_rt_size = 8 + write_rt_size = 8 + bg_rt_size = 8 + + [storage] + cache_path = "/data/greptimedb/s3cache" + cache_capacity = "256MB" +frontend: + config: |- + [runtime] + read_rt_size = 8 + write_rt_size = 8 + bg_rt_size = 8 + + [meta_client] + ddl_timeout = "60s" +objectStorage: + s3: + bucket: default + region: us-west-2 + root: test-root + endpoint: http://minio.minio.svc.cluster.local + credentials: + accessKeyId: rootuser + secretAccessKey: rootpass123 diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index e12c17b7eb..6e1f06d807 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -290,6 +290,10 @@ jobs: minio: true kafka: false values: "with-minio.yaml" + - name: "Minio with Cache" + minio: true + kafka: false + values: "with-minio-and-cache.yaml" - name: "Remote WAL" minio: true kafka: true diff --git a/src/catalog/src/information_schema/tables.rs b/src/catalog/src/information_schema/tables.rs index 911f8aab2c..1056a164fc 100644 --- a/src/catalog/src/information_schema/tables.rs +++ b/src/catalog/src/information_schema/tables.rs @@ -105,7 +105,9 @@ impl InformationTable for InformationSchemaTables { .make_tables(Some(request)) .await .map(|x| x.into_df_record_batch()) - .map_err(Into::into) + .map_err(|err| { + datafusion::error::DataFusionError::External(format!("{err:?}").into()) + }) }), )); Ok(Box::pin(