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

Fix emit 0 count if encounters error #4073

Merged
merged 1 commit into from
Mar 25, 2021
Merged

Fix emit 0 count if encounters error #4073

merged 1 commit into from
Mar 25, 2021

Conversation

yux0
Copy link
Contributor

@yux0 yux0 commented Mar 24, 2021

What changed?
Fix emit 0 count if encounters error

Why?
Fix emit 0 count if encounters error

How did you test it?

Potential risks

@yux0 yux0 requested review from yycptt and a team March 24, 2021 22:39
@coveralls
Copy link

coveralls commented Mar 25, 2021

Pull Request Test Coverage Report for Build 0441c53f-563c-4967-85ee-09b31a74a011

  • 0 of 7 (0.0%) changed or added relevant lines in 1 file are covered.
  • 51 unchanged lines in 11 files lost coverage.
  • Overall coverage decreased (-0.02%) to 66.84%

Changes Missing Coverage Covered Lines Changed/Added Lines %
common/domain/replication_queue.go 0 7 0.0%
Files with Coverage Reduction New Missed Lines %
common/task/weightedRoundRobinTaskScheduler.go 1 89.64%
client/history/client.go 2 44.78%
client/history/metricClient.go 2 49.43%
common/persistence/cassandra/cassandraPersistenceUtil.go 2 92.62%
service/history/handler.go 2 46.59%
service/matching/matcher.go 2 91.46%
common/cache/lru.go 3 90.73%
common/types/mapper/thrift/history.go 4 60.87%
service/frontend/workflowHandler.go 4 55.55%
service/history/historyEngine.go 9 70.98%
Totals Coverage Status
Change from base Build 736b4a9d-d26e-4f14-bc6c-d528b557da1b: -0.02%
Covered Lines: 83579
Relevant Lines: 125044

💛 - Coveralls

@@ -336,13 +336,14 @@ func (q *replicationQueueImpl) emitDLQSize() {
).IncCounter(
metrics.DomainReplicationQueueSizeErrorCount,
)
} else {
q.metricsClient.Scope(
Copy link
Contributor

Choose a reason for hiding this comment

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

is there the corresponding metric on the dash?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

}
q.metricsClient.Scope(
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: lets make sure it wont make the existing alerts going off.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated the alert to use this one.

@yux0 yux0 merged commit f3eaa11 into master Mar 25, 2021
@yux0 yux0 deleted the domain_dlq branch March 25, 2021 18:47
yux0 added a commit to yux0/cadence that referenced this pull request May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants