Accelerate the Value of Data

Merge Tree And Links Consistency Task

Checks that the 'losers' and 'winner' columns in the ENTITIES_MERGE_TREE column family and the 'TIL' column in the ENTITIES column family are in a consistent state with the real state of the object.

This task checks that the 'losers' and 'winner' columns in the ENTITIES_MERGE_TREE column family and the 'TIL' column in the ENTITIES column family are in a consistent state with the real state of the object, based on historical records about merges and unmerges in the ENTITIES_MERGE_TREE column family. It fixes the found inconsistencies if it is running in "fix" mode.

Requests

Admin role is required:

POST {ApplicationURL}/mergeTreeAndLinksConsistency

Tenant admin role is required:

 POST {ApplicationURL}/api/{tenantId}/mergeTreeAndLinksConsistency
Table 1. Parameters
Parameter Required Description
tenantId Yes ID of the tenant to check.
distributed No

If set to true, the task runs in distributed mode (see details in Distributed Mode).

Default value is false.

taskPartsCount No

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: count of API nodes which can execute the tasks.

Default value is 2.

Note: This parameter is used only in distributed mode (distributed=true); otherwise, it is ignored.
fixData No

The task does not fix a found inconsistency if this parameter is set to false.

Default value is true.

Body (optional)

JSON Array of entity or relation URIs to be checked.