Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

owner(ticdc): update changefeed configuration changefeed-error-stuck-duration correctly #11042

Merged
merged 7 commits into from
May 13, 2024
Merged
Changes from 3 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
10 changes: 10 additions & 0 deletions cdc/owner/feed_state_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/pingcap/tiflow/cdc/model"
cerrors "github.com/pingcap/tiflow/pkg/errors"
"github.com/pingcap/tiflow/pkg/upstream"
"github.com/pingcap/tiflow/pkg/util"
"github.com/tikv/client-go/v2/oracle"
pd "github.com/tikv/pd/client"
"go.uber.org/zap"
Expand Down Expand Up @@ -168,6 +169,15 @@ func (m *feedStateManager) Tick(resolvedTs model.Ts,
// `handleAdminJob` returns true means that some admin jobs are pending
// skip to the next tick until all the admin jobs is handled
adminJobPending = true
changefeedErrorStuckDuration := util.GetOrZero(m.state.GetChangefeedInfo().Config.ChangefeedErrorStuckDuration)
if m.changefeedErrorStuckDuration != changefeedErrorStuckDuration {
log.Info("changefeedErrorStuckDuration update",
zap.Duration("oldChangefeedErrorStuckDuration", m.changefeedErrorStuckDuration),
zap.Duration("newChangefeedErrorStuckDuration", changefeedErrorStuckDuration),
)
}
m.errBackoff.MaxElapsedTime = changefeedErrorStuckDuration
asddongmen marked this conversation as resolved.
Show resolved Hide resolved
m.changefeedErrorStuckDuration = changefeedErrorStuckDuration
return
}

Expand Down
Loading