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
ArrayIndexOutOfBoundsException #7926
Comments
Hi @lnxg33k Just to note: you shouldn't use such big sizes. The whole point of scrolling is that you can keep pulling smaller batches of results until you have enough. That said, an NPE is always a bug. I've tried replicating this with two shards and 300,000 documents, but it is working fine for me. Could you provide the stack trace from the logs so that we can investigate further? thanks |
Hi @lnxg33k Any chance of getting the stack trace please? |
@clintongormley I am sorry but I couldn't reporoduce it anymore and don't have the stack trace. |
OK, thanks @lnxg33k I'll close this issue as we have been unable to replicate, but please feel free to reopen if you see it happen again. |
There is a stack trace with
|
I'm doing a lot of scrollings (with sliding time constraint over the same indices) in a for loop. I'll try to clear scroll context after each iteration to see if it helps... |
@l15k4 also, are you using |
@clintongormley Yes I'm doing
|
Hi @l15k4 Thanks for the info. I've asked @martijnvg to have a look at it when he has a moment. Any more info that you can provide to help us track it down would be useful. also, why so many node disconnected exceptions? that seems weird. Do you see any exceptions on those nodes? |
Imho it was all caused by leaving too many "15s" scroll contexts alive because I wasn't clearing them and I was performing 8760 tiny scans in for loop (sequentially) ... After I deployed the application with Sorry but those logs were temporary, they are gone with the old docker container... |
@l15k4 Did the errors occur while there were nodes of mixed versions in the cluster? Or were all nodes on the same version? |
@martijnvg At the time of the error being thrown all 4 nodes were |
@l15k4 no, but I don't recommend to do this is for a long period of time. Not sure what the cause of the exception was here, but I think the code where the exception occurs can be written in such a way that an |
Fixed via #11978 |
I am using the latest version of elasticsearch and I got this error when I use scroll with large number size and scan as a search type
{"error":"ArrayIndexOutOfBoundsException[-131072]","status":500}
thous it perfectly works woth small sizes
ex.
The text was updated successfully, but these errors were encountered: