uber / cadence

Cadence is a distributed, scalable, durable, and highly available orchestration engine to execute asynchronous long-running business logic in a scalable and resilient way.
https://cadenceworkflow.io
MIT License
7.98k stars 775 forks source link

Stop the ratelimiter collections when stopping the service #6155

Closed Groxx closed 2 days ago

Groxx commented 2 days ago

Rather obviously missed in retrospect, oops.

These can be stopped basically anywhere without causing issues, but after the handlers are stopped there should be no more in-bound requests worth counting (the "stopping" check will stop anything from actually "running"). So around here seems like the most-reasonable place to stop sharing load info with others.

coveralls commented 2 days ago

Pull Request Test Coverage Report for Build 01907562-f5f0-40b6-8908-451d758b6138

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
service/frontend/service.go 9 17 52.94%
<!-- Total: 9 17 52.94% -->
Files with Coverage Reduction New Missed Lines %
common/task/weighted_round_robin_task_scheduler.go 1 89.05%
tools/cli/admin_db_decode_thrift.go 2 70.51%
service/matching/tasklist/matcher.go 2 90.91%
common/persistence/historyManager.go 2 66.67%
service/history/task/transfer_standby_task_executor.go 3 86.64%
common/persistence/statsComputer.go 3 98.18%
service/history/shard/context.go 9 78.13%
<!-- Total: 22 -->
Totals Coverage Status
Change from base Build 019074f6-fb21-4003-bd1e-30edc2b1e424: 0.003%
Covered Lines: 105315
Relevant Lines: 147269

💛 - Coveralls