Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cdc/kv/shared_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ func (s *requestedStream) receive(
zap.String("addr", rs.storeAddr),
zap.String("code", grpcstatus.Code(err).String()),
zap.Error(err))
if sharedconn.StatusIsEOF(grpcstatus.Convert(err)) {
return nil
}
// if sharedconn.StatusIsEOF(grpcstatus.Convert(err)) {
// return nil
// }
return errors.Trace(err)
}
if len(cevent.Events) > 0 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/replica_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (

const (
// minSyncPointInterval is the minimum of SyncPointInterval can be set.
minSyncPointInterval = time.Second * 30
minSyncPointInterval = time.Second * 1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Changing minSyncPointInterval to 1 second breaks the unit test TestValidateAndAdjust in pkg/config/replica_config_test.go. Specifically, the assertion at line 277, require.Error(t, cfg.ValidateAndAdjust(sinkURL)), will fail because an interval of 29 seconds is now valid. Please update the test to align with this new minimum value.

// minSyncPointRetention is the minimum of SyncPointRetention can be set.
minSyncPointRetention = time.Hour * 1
minChangeFeedErrorStuckDuration = time.Minute * 30
Expand Down
Loading