Skip to content
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

Follow up on known PostingsForMatchersCache issues #548

Closed
aknuds1 opened this issue Oct 20, 2023 · 7 comments
Closed

Follow up on known PostingsForMatchersCache issues #548

aknuds1 opened this issue Oct 20, 2023 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@aknuds1
Copy link
Contributor

aknuds1 commented Oct 20, 2023

As mentioned by @charleskorn in #546, there are a couple of outstanding issues in PostingsForMatchersCache.PostingsForMatchers that should be followed up on:

  • Should other kinds of errors also not be cached?
  • If all waiting calls to PostingsForMatchersCache.PostingsForMatchers() have cancelled their context, should we cancel the context passed to the underlying PostingsForMatchers implementation?
@aknuds1 aknuds1 self-assigned this Oct 20, 2023
@aknuds1 aknuds1 added the bug Something isn't working label Oct 20, 2023
@charleskorn
Copy link
Contributor

One other thing that needs to be done once those questions are answered: we should upstream the fix in #546 (and any other related changes) to Prometheus.

@charleskorn
Copy link
Contributor

@aknuds1 I see you've assigned yourself to this issue, but let me know if you need any help.

@aknuds1
Copy link
Contributor Author

aknuds1 commented Oct 23, 2023

we should upstream the fix in #546 (and any other related changes) to Prometheus

@charleskorn which changes from #546, considering PostingsForMatchersCache isn't upstream? Sorry if I'm missing the obvious.

@aknuds1 aknuds1 removed their assignment Oct 23, 2023
@aknuds1
Copy link
Contributor Author

aknuds1 commented Oct 23, 2023

I see you've assigned yourself to this issue, but let me know if you need any help.

@charleskorn I unassigned myself, since I figured it's better to leave it free in the (query) backlog, so whoever has the capacity to pick it up can.

@charleskorn
Copy link
Contributor

we should upstream the fix in #546 (and any other related changes) to Prometheus

@charleskorn which changes from #546, considering PostingsForMatchersCache isn't upstream? Sorry if I'm missing the obvious.

Oh, I misunderstood, I thought this was an upstream feature. In that case, no upstreaming required 🙂

@aknuds1
Copy link
Contributor Author

aknuds1 commented Oct 23, 2023

Haven spoken offline with @charleskorn, it might be preferable if I pick this issue up if I have the capacity, given that I possess the most context wrt. making Prometheus support query cancellation. I'll have to see if bandwidth opens up to work on this.

@pracucci
Copy link
Collaborator

pracucci commented Jul 4, 2024

Fixed by #644

@pracucci pracucci closed this as completed Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants