Encountering Elasticsearch Server Error while Percolating in 8.19.6

Hello!

After upgrading my cluster from 7.17 to 8.19, I’ve started encountering an intermittent server error: java.util.NoSuchElementException when performing percolation. I’ve opened up an issue on the elasticsearch repo with more details: NoSuchElementException in NestedScope.previousLevel() during percolate query execution with nested queries · Issue #141489 · elastic/elasticsearch · GitHub but haven’t gotten any response yet.

It would be great if someone could validate that there is indeed a potential race condition when handling nested query scopes during search execution for percolation or whether there’s some kind of misconfiguration on my end. I’d appreciate any visibility here, as it would help me move off of the EoL version and onto 8.x!

Thanks!

I minimally went ahead and triaged this to right team. I don’t know if I’ll get the time to try to reproduce this soon but as I have time I can try. I put an update on the issue itself, which I really appreciate you creating. But it probably goes without saying that the closer you can get to handing off something consistently reproducible the faster we can likely address it.

A quick scan of the code myself didn’t obviously show what could be wrong unfortunately. But it does seem like a legitimate bug to me.