-
Notifications
You must be signed in to change notification settings - Fork 188
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
metrics.AddJobDurationHistogram.WithLabelValues("flush", s.cfg.Name, s.queueBucketMapping[i], s.cfg.SourceID).Observe(time.Since(startTime).Seconds()) | ||
} | ||
s.jobWg.Add(1) | ||
s.dmlJobCh <- job |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this case branch we handle flushJob came from caller, and in L952 we'll generate flush job inside this function. Can we merge the handle logic to one place such as L960-1016?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still has some differences. One is flush job and one is ticker(30s). I think separating them is easier to understand. I change the variable name to distinguish them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but please update the PR description (worker pool...)
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 87ba1fb
|
In response to a cherrypick label: new pull request created: #2237. |
What problem does this PR solve?
Test: