Skip to content

Commit b4f3588

Browse files
committed
More review fixes
1 parent efe992c commit b4f3588

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Pulsar.Client/Api/AutoClusterFailover.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ module internal AutoClusterFailoverLogic =
7575
PrimaryRecoveredTimestamp = None
7676
}, AutoClusterDecision.SwitchToSecondary idx
7777
| None ->
78-
Log.Logger.LogWarning("Secondary cluster is not available yet after failover delay")
7978
return state, AutoClusterDecision.NoAction
8079
| _ ->
8180
return state, AutoClusterDecision.NoAction
@@ -135,6 +134,8 @@ type AutoClusterFailover
135134
let! avail = probeAvailable secondaryServiceInfos[i].EndPointResolver
136135
if avail then found <- Some i
137136
i <- i + 1
137+
if found.IsNone then
138+
Log.Logger.LogWarning("Available secondary cluster wasn't found")
138139
return found
139140
}
140141

0 commit comments

Comments
 (0)