Skip to content

Commit 11d66d8

Browse files
Fix successive failures error in streamer (#1371)
1 parent 59fd18d commit 11d66d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/logic/streamer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func (this *EventsStreamer) StreamEvents(canStopStreaming func() bool) error {
193193
} else {
194194
successiveFailures = 0
195195
}
196-
if successiveFailures > this.migrationContext.MaxRetries() {
196+
if successiveFailures >= this.migrationContext.MaxRetries() {
197197
return fmt.Errorf("%d successive failures in streamer reconnect at coordinates %+v", successiveFailures, this.GetReconnectBinlogCoordinates())
198198
}
199199

0 commit comments

Comments
 (0)