-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Listing active targets shows even inactive ones #2306
Comments
We defined "active" targets as those that have 0 weight. In that sense, none of these aren't "active". Sounds like we need to change our definition of active :) |
(btw this is another headache resulting from the fact that we don't abstract target history away from target objects. makes dealing with this interface a pain) |
yes, we should abstract it away, but that will be in the new caching layer (see comments in quip docs) active records are the last (in time) record for each target. And if that last one has weight 0, it is no longer active |
Seems like we have redefined "active" with the above description. Do we all agree? |
WFM, workin on this now. |
Handled in #2310 |
The
:8001/upstreams/{name}/targets/active/
endpoint is showing both active and inactive targets when the same Target'starget
(is being added multiple times).To replicate:
Listing active targets shows all three (instead of only one):
The text was updated successfully, but these errors were encountered: