-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add XdsDirectory to get d2 service and cluster names from INDIS (#1038)
* Add XdsDirectory to get d2 service and cluster names from INDIS * add D2ClusterOrServiceName proto, wrap subscriber map in getter for testing * wait until all changes to names complete before serving * add and update XdsClient tests * add XdsDirectory tests * cleanups * check string non-null and non-empty in the directory * call onAllResourcesProcessed when received the last response chunk, and unlock write lock after checking isUpdating flag * update doc * change back to object lock to be able to unlock from another thread * touch up * touch up * also notify all resources processed when failed to parse nonce * add default timeout * handle interruption explicitly * use rate limitted logger for nonce parsing failure * set logger rate to 10s * set logger rate to 1min * test calling onAllResourcesProcessed from a separate thread * use count down latch in test for stableness
- Loading branch information
Showing
10 changed files
with
1,165 additions
and
291 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
Oops, something went wrong.