-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move Mirroring Configuration to Individual Repositories #1086
base: main
Are you sure you want to change the base?
Conversation
Will continue after #1085 is merged. 😉 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1086 +/- ##
============================================
+ Coverage 70.29% 70.37% +0.08%
- Complexity 4284 4443 +159
============================================
Files 427 442 +15
Lines 17258 17882 +624
Branches 1915 1974 +59
============================================
+ Hits 12131 12585 +454
- Misses 4077 4240 +163
- Partials 1050 1057 +7 ☔ View full report in Codecov by Sentry. |
commandExecutor.execute(Command.updateServerStatus(ServerStatus.REPLICATION_ONLY)) | ||
.get(1, TimeUnit.MINUTES); | ||
logger.info("Starting Mirrors migration ..."); | ||
if (commandExecutor instanceof ZooKeeperCommandExecutor) { | ||
logger.debug("Waiting for 10 seconds to make sure that all cluster have been notified of the " + | ||
"read-only mode ..."); | ||
Thread.sleep(10000); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer migrating without entering read-only mode because
- It's not critical if mirroring is temporarily unavailable for a minute.
- Any issues can be promptly addressed if they arise.
If this is acceptable, I will remove these lines of code. Please let me know your opinion.
Motivation:
Mirroring configurations should belong to the repository where the mirroring is executed to ensure proper ownership and management alignment.
Modifications:
projects/foo/credentials/foo-credential
.projects/foo/repos/bar/credentials/bar-credential
.Result: