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 area/dm Issues or PRs related to DM. severity/major This is a major bug. type/bug This is 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 This is a bug. area/dm Issues or PRs related to DM. labels Jan 12, 2022
@github-actions github-actions bot added this to Need Triage in Question and Bug Reports Jan 12, 2022
@niubell niubell added the severity/minor This is a minor bug. label 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
@lance6716 lance6716 added severity/major This is a major bug. and removed severity/minor This is a minor bug. labels Jan 14, 2022
Question and Bug Reports automation moved this from Need Triage to Done 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 area/dm Issues or PRs related to DM. severity/major This is a major bug. type/bug This is a bug.
Development

Successfully merging a pull request may close this issue.

4 participants