Display read-only repositories only with dataloss by default
Currently the dataloss
command displays every outdated repository. Secondaries might be temporarily outdated as new writes arrive on the primary. Having a way to display these temporarily outdated repositories is helpful for evaluating how the replication is working. Most commonly the dataloss
command is used after a failover to identify which repositories are in read-only mode and require administrator action. dataloss
command should allow for displaying only the read-only repositories to ease the administrator in resolving the read-only modes after a failover.
The solution:
-
dataloss
should clearly display in the output if a repository is in read-only mode by adding(read-only)
qualifier next to the repository path. -
dataloss
should by default only repositories in read-only mode. -
dataloss
should have-all
flag to dispaly every outdated repository.
Edited by Sami Hiltunen