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

some metrics of Syncer is not updated if no query-status #4281

Closed
lance6716 opened this issue Jan 12, 2022 · 0 comments · Fixed by #4330
Closed

some metrics of Syncer is not updated if no query-status #4281

lance6716 opened this issue Jan 12, 2022 · 0 comments · Fixed by #4330
Assignees
Labels
affects-5.3 affects-5.4 This bug affects the 5.4.x(LTS) versions. area/dm Issues or PRs related to DM. severity/major type/bug The issue is confirmed as a bug.

Comments

@lance6716
Copy link
Contributor

lance6716 commented Jan 12, 2022

What did you do?

  • dm_syncer_remaining_time
  • dm_syncer_binlog_pos{"master"}
  • dm_syncer_binlog_file{"master"}

these metrics is updated in printStatus

metrics.RemainingTimeGauge.WithLabelValues(s.cfg.Name, s.cfg.SourceID, s.cfg.WorkerName).Set(float64(remainingSeconds))
and printStatus will only be called by query-status from user or internal. They should be periodically updated in background.

this bug is introduced in pingcap/dm#2076

@lance6716 lance6716 added type/bug The issue is confirmed as a bug. area/dm Issues or PRs related to DM. labels Jan 12, 2022
@jebter jebter added affects-5.3 affects-5.4 This bug affects the 5.4.x(LTS) versions. labels Jan 12, 2022
@niubell niubell assigned niubell and dsdashun and unassigned niubell Jan 13, 2022
@lance6716 lance6716 assigned lance6716 and unassigned dsdashun Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-5.3 affects-5.4 This bug affects the 5.4.x(LTS) versions. area/dm Issues or PRs related to DM. severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants