This message was deleted.
# general
s
This message was deleted.
l
Which version are you seeing this issue in?
Thanks for the comprehensive description of the problem! It seems like something similar (speculation) has recently started surfacing in our clusters as well, therefore trying to triage what might have caused this issue.
k
we saw it in 25.0.0.
however, this issue would happen in any recent release at least from 0.23.0 till latest.
Basically, since
GroupbyStategyV2
was introduced and used by default, the merge buffer pool would be used for two (or more level) group by queries.
l
curious, does the query pass if it is executed in isolation (instead of a flood of the queries)?
We are seeing that if the query is run in isolation, it passes sub second, however if multiple queries are fired in parallel, they slow down considerably. Taking >1min to produce result (if the timeout doesnt strike em down)
k
Contention for merge buffers can very well be the reason of what you observed I guess. In our case, two level group by queries in isolation would also complete in secs.
a
btw I have been looking at your PR as well. it's definitely useful.
👍 1
l
thanks for the lead, confirmed we are running into the same issue. Btw, left a couple of comments on the PR
fyi, we identified the issue, and it seems that there’s a deadlock created when multiple queries requiring broker merge buffers are fired.
👍 1
best bet till there’s a fix would be to increase the num merge buffers on broker - minimum number should be estimatedParallelQueries + 1, though you can set it slightly higher to be on a safer side.