You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, the health service dependency is internal and satisfies both interfaces. The index is set on subsequent fetches as seen in the Consul logs.
Whereas the catalog services dependency is external (CTS) results in querying the endpoint continuously w/o blocking since the index query parameter is not set.
The source of the issue with implementing the QueryOptionsSetter interface is that the argument it takes (QueryOptions) is private to the internal/dependency/ module. So the super quick fix would be to move QueryOptionsSetter and the QueryOptions struct into the public dep/ submodule. QueryOptionsSetter isn't strictly necessary, but it would make more sense.
I am leaning toward this currently as it would (I'm pretty sure) let us fix this issue in the short run while we think about how this could be better addressed before 1.0 (#67).
Description
Custom dependency types external to the library cannot utilize blocking query functionality supported by hcat with
BlockingQuery
andQueryOptionsSetter
interfaces as internal. And so theindex
query param is never set during the view fetch for CTS dependencies likeServicesRegex
andCatalogServicesRegistration
. This results in constant querying of the Consul API.Expected Behavior
For example, the health service dependency is internal and satisfies both interfaces. The index is set on subsequent fetches as seen in the Consul logs.
Actual Behavior
Whereas the catalog services dependency is external (CTS) results in querying the endpoint continuously w/o blocking since the index query parameter is not set.
Related to #67
The text was updated successfully, but these errors were encountered: