-
Notifications
You must be signed in to change notification settings - Fork 898
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
[BUG] opensearch-with-long-numerals blocks and times out from Discover page #6377
Comments
After more testing I was able to find a work around along with some details that might be helpful. I was able to duplicate the issue by pushing 200 documents into an index. Each had a single field, initially a string containing JSON which was around 15k characters in length. I repeated this with the single large field only containing "A" repeated 15k times. This completed in 96ms. I then removed characters and captured the time taken in opensearch-with-long-numerals. Each iteration built on the last. For example in the second pass of removing characters,
With this in mind I only replaced commas (,) with :: from the original JSON strings. This then only ran for 665ms; from the initial delay of 37541ms this was a marked improvement. I then replaced commas with pipes on 800 documents and opensearch-with-long-numerals began returning 500 error in 789ms. opensearch-with-long-numerals is still blocking when in progress which is not ideal. Although with this character replacement it can fail in under 1 second instead of 37 seconds or longer which allows Kibana a larger margin to respond to health checks. |
These finding are great. I will use this to figure out the bottleneck. |
@lyradc the source of the exception is the |
@lyradc I received the payload; thanks a lot for sending it over. I will dig more and get back to you in a few days. |
As I wrote in: #6134 (comment) try it with a very long logline which contains this type of message. Here's an example from our Cassandra: cassandra_paxos_example.json If you have a message like this 2 or 3 times in your time range, you'll definitely see that Dashboards hangs for a very long time. |
Any update here? 2.14.0 was released last week, but it is still broken. I've just tested it with the example from my previous post. |
We are facing exactly the same issue on our OpenSearch setup. That would be great to have a solution for this issue. |
seems in 2.14 it simply doesnt return a hit, fails silently.
same query from dev-tools
|
I have made a new package named JSON11 for handling long numerals. opensearch-project/opensearch-js#784 will add that to the JS client and then OSD will adopt it with the appropriate code changes. |
Describe the bug
When attempting to view logs on the Discover page with long-numerals the Kibana instance will fail to respond to requests, causing a failure in health checks as well as returning 500 in Kibana logs.
When attempting the same query from DevTools or outside Kibana (curl) no error is returned and results are supplied.
To Reproduce
Steps to reproduce the behavior:
Kibana logs after ~5min delay of no new logs...
Expected behavior
Kibana is expected to continue responding to other requests while processing.
Kibana is expected to not throw a 500 error.
OpenSearch Version
2.13.0
Dashboards Version
2.13.0
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: