File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -650,8 +650,13 @@ def update_synchronous_node_count(self, units: int = None) -> None:
650
650
651
651
652
652
def cluster_system_id_mismatch (self , unit_name : str ) -> bool :
653
- """Check if the Patroni service is down and
654
- if there is the error storage belongs to foreign cluster in its logs."""
653
+ """Check if the Patroni service is down.
654
+
655
+ If there is the error storage belongs to third-party cluster in its logs.
656
+
657
+ Returns:
658
+ "True" if an error occurred due to the fact that the storage belongs to someone else's cluster.
659
+ """
655
660
last_log_file = self ._last_patroni_log_file ()
656
661
unit_name = unit_name .replace ("/" , "-" )
657
662
if f" CRITICAL: system ID mismatch, node { unit_name } belongs to a different cluster:" in last_log_file :
You can’t perform that action at this time.
0 commit comments