-
Notifications
You must be signed in to change notification settings - Fork 116
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] Incomplete search results against rollup index composed of data from multiple rollup jobs #903
Comments
Should we move this to https://github.com/opensearch-project/index-management ? |
Hi @sharebear and @msfroh, I've identified the cause of the reported behavior and believe this issue can now be closed. The behavior is related to the code snippet found here: This code references the setting "plugins.rollup.search.search_all_jobs", documented here: https://opensearch.org/docs/2.4/im-plugin/index-rollups/settings/ To modify the current behavior, you can update your cluster configuration using the following API call:
This update will enable searching across all rollup jobs, both persistently and transiently. Please don't hesitate to let me know if you have any questions or need any more help. |
Thanks, I've confirmed that the setting does seem to resolve my issue in local testing, just need to work out how to get that set in my Aiven hosted instance (not your problem) |
@KagariSan While setting For example executing the search
followed by
And comparing the results, there are differences in the numbers returned for 13 of the 20 months we have data for. Repeating that exercise with 1 hour buckets instead of 1 month buckets only 6 results show a difference in the sum. I've not yet worked out what's causing the issue so I don't have a minimal data set to reproduce the issue. I'll try and time box some time this week to investigate more, but would appreciate any input on what the potential cause could be so that I can direct my investigation somewhere. |
Describe the bug
Incomplete results when querying rollup index with date histogram.
To Reproduce
Enter the following into the dev console and execute each query in sequence (waiting for completion of rollup jobs at that step)
Expected behavior
All three queries at the end should return the same results. What appears to be happening is that the results from only one of the rollup jobs are returned when the
query
parameter is provided to the search against the rollup index.Host/Environment (please complete the following information):
Additional context
We've got some metrics that we have posted to daily indexes. We have an ISM policy applied to the daily index pattern that after three days, performs a rollup to an annual index and deletes the source index. When trying to create visualisations based upon the rollup index we're getting strange results. When hand crafting a search against the rollup index I'm able to see that all the expected data is there, but when placing the equivalent query via a visualisation on a dashboard we're missing data. The difference between my hand-crafted search and the search from the dashboard is the presence of the
query
field that narrows down the time-frame and optionally drills down on other facets (not included in code example above). How do we get our visualisations to show all the data, or have I stubled upon a genuine bug here?The text was updated successfully, but these errors were encountered: