-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement new DualReadMonitor for UriProperties (#999)
* Implement new DualReadMonitor for UriProperties This new monitor should be as expensive as the previous one since the previous one called the `.equals` method on `UriProperties`, which compares every single URI. It now produces a similarity metric which represents the fraction of matching hosts present in the ZK response and the observer response. The Cluster and Service monitors remain unchanged. * Update logging strategy * add jmx method and tests, and put behind a config * update changelog * make it thread safe * lock per cluster * use cluster match record itself as lock and add test * execute multi-thread test multiple times * check if tasks completed before executor timeout * modify test: ensure properties for the same lb are reported in order * adding more multi-thread test cases * clarify comments in test * add a debug log and clean up test * use one queue for each lb in test * address comments * adjust log msg * Just lock the whole damn thing --------- Co-authored-by: Bohan Yang <boyang@linkedin.com>
- Loading branch information
1 parent
a646a52
commit 5128dd5
Showing
12 changed files
with
587 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.