...
Page Properties | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||
Resources & Remarks
Modification History
|
Excerpt |
---|
Compare the objects stored in the database and Elasticsearch index. |
...
Unforeseen circumstances might occur in any system and might lead to differences between database and Elasticsearch index. As an For example, a deleted object was correctly removed from the database, but for whatever reason not from the Elasticsearch index. As of yuuvis® Momentum version 2020 Winter, it is possible to check the consistency of the stored objects by means of the maintain
compare
command provided by the Commander service.
While the command runs continuously, the comparison of DMS objects is performed step by step. The objects are grouped by the date of their last modification date/creation date. For each day between the start date and the end date, the corresponding objects are processed. Then again, each day is split in a variable number of time periods, such that the amount of objects to be compared in each period is approximately equal to the number of fetch-size
.
All results will be are summarized in a file called job-result.json
. In this (ND)JSON structed file, each day is listed separately and contains some general comparison results.
Code Block | language | yml|||||
---|---|---|---|---|---|---|
| ||||||
{"1970-01-01" : {"total":{"missingDb":10,"missingEs":5,"differences":2,"dbHits":20,"esHits":20},"end":"1970-01-02T00:00:00.000Z","start":"1970-01-01T00:00:00.000Z","daily":{"comparison":{"propertyDifferences":2,"missingInDb":10,"missingInEs":5},"splits":1,"esHits":20,"dbHits":20}}} {"1970-01-02" : {"total":{"missingDb":15,"missingEs":10,"differences":4,"dbHits":40,"esHits":40},"end":"1970-01-03T00:00:00.000Z","start":"1970-01-02T00:00:00.000Z","daily":{"comparison":{"propertyDifferences":2,"missingInDb":5,"missingInEs":5},"splits":1,"esHits":20,"dbHits":20}}} |
For every day with differences, there is an additional folder, containing some more detailed information about this day's differences.
Code Block | language | yml|||
---|---|---|---|---|
| ||||
{ "timeRangeSummary": { "start": "1970-01-01T00:00:00.000Z", "end": "1970-01-02T00:00:00.000Z", "comparison": { "missingInDb": [ "00000000-0000-0000-0000-0000000000000", "00000000-0000-0000-0000-0000000000001", "00000000-0000-0000-0000-0000000000002", "00000000-0000-0000-0000-0000000000003", "00000000-0000-0000-0000-0000000000004", "00000000-0000-0000-0000-0000000000005", "00000000-0000-0000-0000-0000000000006", "00000000-0000-0000-0000-0000000000007", "00000000-0000-0000-0000-0000000000008", "00000000-0000-0000-0000-0000000000009", "00000000-0000-0000-0000-0000000000010" ] "missingInEs": [ "00000000-0000-0000-0000-0000000000011", "00000000-0000-0000-0000-0000000000012", "00000000-0000-0000-0000-0000000000013", "00000000-0000-0000-0000-0000000000014", "00000000-0000-0000-0000-0000000000015", "00000000-0000-0000-0000-0000000000016" ], "differences": [ "00000000-0000-0000-0000-0000000000017", "00000000-0000-0000-0000-0000000000018" ] } } } |
After all time periods of a day are finishedprocessed, the procedure is repeated for the next day until the current date (or the specified end date) has been processedis reached. Depending on the number of objects for the tenant, this process can take a long time. While running the task, the process progress is continuously displayed on the command line including an estimated completion time.
When After the command finishedfinishes, the directory containing all result files will be is shown as result.
The following parameters can be given to the maintain
compare
command:
...