Skip to content

Commit

Permalink
sync-sidecar: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Jul 11, 2024
1 parent c964f2a commit 38560e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sync-sidecar/read.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@ func (s *ReadSideCar) closeStream(streamName string, complete bool) {
return
}
s._closeStream(stream, complete)
s.updateRunningStatus()
}

func (s *ReadSideCar) checkpointIfNecessary(stream *ActiveStream) {
Expand Down Expand Up @@ -480,8 +479,10 @@ func (s *ReadSideCar) processTrace(rec *TraceRow, line string) {
if err != nil {
s.streamErr(stream, "error opening stream: %v", err)
}
s.updateRunningStatus()
case "COMPLETE", "INCOMPLETE":
s.closeStream(streamName, streamStatus.Status == "COMPLETE")
s.updateRunningStatus()
}
case "ERROR":
r := rec.Error
Expand Down

0 comments on commit 38560e1

Please sign in to comment.