Commit 8cbfd2fa authored by Ian Baum's avatar Ian Baum

Stop checking repository check status on Geo secondary

* Repository checks are not run on Geo secondary nodes, causing the
gitlab:geo:check_replication_verification_status rake task to fail

Changelog: fixed
parent 2b4a7ee4
---
title: Stop checking repository check status on Geo secondary
merge_request: 60323
author:
type: fixed
...@@ -56,7 +56,6 @@ module Gitlab ...@@ -56,7 +56,6 @@ module Gitlab
print_container_repositories_status print_container_repositories_status
print_design_repositories_status print_design_repositories_status
print_replicators_status print_replicators_status
print_repositories_checked_status
print_replicators_verification_status print_replicators_verification_status
end end
...@@ -112,7 +111,8 @@ module Gitlab ...@@ -112,7 +111,8 @@ module Gitlab
def conditional_replication_and_verification_checks_status def conditional_replication_and_verification_checks_status
[].tap do |status| [].tap do |status|
if Gitlab::CurrentSettings.repository_checks_enabled && current_node_status.repositories_count.to_i > 0 if Gitlab::CurrentSettings.repository_checks_enabled && current_node_status.repositories_count.to_i > 0 && \
!Gitlab::Geo.secondary?
status.push current_node_status.repositories_checked_in_percentage status.push current_node_status.repositories_checked_in_percentage
end end
......
...@@ -31,8 +31,7 @@ RSpec.describe Gitlab::Geo::GeoNodeStatusCheck do ...@@ -31,8 +31,7 @@ RSpec.describe Gitlab::Geo::GeoNodeStatusCheck do
/Attachments: /, /Attachments: /,
/CI job artifacts: /, /CI job artifacts: /,
/Container repositories: /, /Container repositories: /,
/Design repositories: /, /Design repositories: /
/Repositories Checked: /
] ]
checks.each do |text| checks.each do |text|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment