tencent cloud

Data Transfer Service

Pipeline Validation

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-12-01 18:06:35
Traduzido e Verificado por IA

Check Details

In MongoDB data subscription, DTS checks the source database against the native Change Stream pipeline validity requirements. For pipeline syntax errors unrelated to user data, DTS displays a prompt on the page and asks the user to make modifications accordingly.
The output aggregation setting is used to filter subscription data and trim output fields. Its configuration items include aggregation operators and aggregation expressions, corresponding to the pipeline stages of the Change Stream aggregation pipeline. When this setting is not enabled, the task outputs the default Change Event without involving any pipeline, and this check item is not triggered.
The check is performed after the subscription task is configured and checks are initiated. It only determines whether the pipeline itself is valid, regardless of the subscribed data. Even if no data remains after filtering, the conclusion of this check item is not affected.

Causes

The aggregation operator is empty, or the aggregation expression is empty.
The aggregation operator is not within the supported range. MongoDB data subscription supports $addFields, $match, $project, $replaceRoot, $redact, as well as $replaceWith, $set, and $unset supported in version 4.2 and later.
The subscription instance version is earlier than 4.2, but $replaceWith, $set, or $unset is used.
The aggregation expression is not valid JSON, for example, missing quotation marks, mismatched brackets, or using single quotation marks.
The aggregation expression does not match the selected aggregation operator. For example, the expression of $match is not an object, or the expression of $replaceRoot is missing the newRoot field.

Fix

In the output aggregation setting on the subscription task configuration page, modify the aggregation operator or aggregation expression of the corresponding rule as prompted. If data filtering is not required, disable this switch to directly output the default Change Event. After the modification, initiate the check again.

Ajuda e Suporte

Esta página foi útil?

comentários