Skip to content

Commit

Permalink
Update altinity-kb-object-consistency-in-a-cluster.md
Browse files Browse the repository at this point in the history
  • Loading branch information
den-crane committed Sep 11, 2023
1 parent 7e9b006 commit 8eae4fe
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -68,12 +68,14 @@ WITH (
SELECT database,
dictionary,
arrayFilter( i-> NOT has(groupArray(host),i), hosts) miss_dict,
arrayReduce('median', (groupArray((element_count, host)) AS ec).1 )
arrayReduce('min', (groupArray((element_count, host)) AS ec).1) min,
arrayReduce('max', (groupArray((element_count, host)) AS ec).1) max
FROM (
SELECT FQDN() host, database, name dictionary, element_count
FROM clusterAllReplicas('{cluster}',system,dictionaries)
)
GROUP BY database, dictionary
HAVING miss_dict <> []
HAVING miss_dict <> [] or min <> max
SETTINGS skip_unavailable_shards=1;
;
```

0 comments on commit 8eae4fe

Please sign in to comment.