Unify and manage your data

Merge tree crosswalks consistency task

Learn how to check inconsistencies between crosswalk entities and crosswalks in the crosswalk tree.

If a crosswalk isn’t found in the crosswalk tree, use the Tasks to fix this inconsistency in the ENTITIES_MERGE_TREE column.

By default, the task is run in scan mode, that is, the fixData parameter is set to false. To fix inconsistencies, set the fixData parameter to true and run the task in fix mode.
POST {ApplicationURL}/api/{{tenantId}}/mergeTreeCrosswalksConsistency?fixData=true

Request

POST {ApplicationURL}/api/{tenantId}/mergeTreeCrosswalksConsistency

The request body, if provided, must contain a JSON array of the entity or relation URIs that must be checked.

POST {ApplicationURL}/api/{{tenantId}}/mergeTreeCrosswalksConsistency?fixData=false
[
    "entities/00XGkDo",
    "entities/00XGbhI"
]
Table 1. Parameters
Parameter Required Description
tenantIdYes ID of the tenant to check.
distributedNoIf set to true, the task runs in distributed mode. For more information, see topic Distributed Mode. The default value is false.
taskPartsCountNo Number of tasks, which are created for distributed reindexing. Each task reindexes its own part of objects, and all of them may be executed on different API nodes in parallel. Recommended value: the count of API nodes for executing the tasks.

Default value is 2.

Note: This parameter is used only in distributed mode (distributed=true); otherwise, it’s ignored.
fixDataNo The inconsistencies are fixed when the parameter is set to true.
checkPhantomsNoThe mode to check whether phantoms are repeated in losers. By default, this is set to False.For more information, see topic Export Merge Tree.
produceEventsNoThe option to determine if task must generate events when entity is fixed. If it is set to true, events are generated. By default, this is set to true.
bufferSizeNoThe size of the buffer for the entity list provider. By default, this size is 150.
maxResultsToStoreNoThe maximum buffer size allowed to store founded corrupted entities.

Response

[
    {
        "id": "b9455375-6c73-42a8-8a29-b1513a2ff1e4",
        "groupId": "4bf8b737-9caa-414e-892c-c7e1e9653218",
        "createdTime": 1662461700217,
        "createdBy": "john.doe@reltio.com",
        "updatedTime": 1662461700217,
        "updatedBy": "john.doe@reltio.com",
        "type": "com.reltio.businesslogic.tasks.consistency.MergeTreeCrosswalksConsistencyTask",
        "status": "SCHEDULED",
        "name": "MergeTree And Crosswalks Consistency for tenant companyabc",
        "createdOnHost": "DESKTOP-STQO7H1",
        "parallelExecution": false,
        "nodesGroup": "default",
        "parameters": {
            "tenantId": "companyabc",
            "uriList": "[\r\n    \"entities/00XGkDo\",\r\n    \"entities/00XGbhI\"\r\n]",
            "doNotFix": "true"
        },
        "currentState": {},
        "duration": "0s"
    }
]