Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upUnused point slices are not added back to the pool by the matrix selector #4362
Comments
This comment has been minimized.
This comment has been minimized.
brian-brazil
closed this
in
#4363
Jul 18, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 22, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
roganartu commentedJul 9, 2018
A recent change to promql/engine.go moved the call to
putPointSlicefrom the evaluator finalizers in thematrixSelectormethod to elsewhere:dd6781a#diff-83539908220a826e39b7ba3a4f27d5d6L862
However, now only the used point slices are returned to the pool:
prometheus/promql/engine.go
Line 732 in dd6781a
I may be missing something here, but afaict unused (ie: empty) point slices should be returned to the pool immediately, since no reference to them is held after the current iteration in
matrixSelectoranyway.