Skip to content

Commit 99febfd

Browse files
committed
chore: add private task config check on GlobalServices::init_with
1 parent 3761c47 commit 99febfd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/query/service/src/global_services.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ impl GlobalServices {
176176
GlobalHistoryLog::init(config).await?;
177177
}
178178
if config.task.on {
179+
if config.query.cloud_control_grpc_server_address.is_some() {
180+
return Err(ErrorCode::InvalidConfig(
181+
"Private Task is enabled but `cloud_control_grpc_server_address` is not empty",
182+
));
183+
}
179184
TaskService::init(config).await?;
180185
}
181186

tests/task/test-private-task.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ for node in 1 2; do
1919

2020
echo "Appending history table config to node-${node}"
2121
cat ./tests/task/private_task.toml >> "$CONFIG_FILE"
22+
sed -i '/^cloud_control_grpc_server_address/d' $CONFIG_FILE
2223
done
2324

2425
# Start meta cluster (3 nodes - needed for HA)

0 commit comments

Comments
 (0)