Skip to content
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

Lucene metrics: Remove "size":500 from backend processTimeSeriesQuery #269

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

fridgepoet
Copy link
Member

What this PR does / why we need it:
Query building (to OpenSearch) was compared between the backend and the frontend for the following query:
Screenshot 2023-09-27 at 17 59 21

One of the differences observed was: "size":500 in the backend query and "size":0 in the frontend query. This PR sets the "size":0 in the backend query.

The "size":500 was incorrectly introduced in https://github.com/grafana/opensearch-datasource/pull/203/files#diff-44afe4fa7a308b985c56a75c710979bd17870768f6365e65baa40115849846e6R79-R80

(Another argument in support of "size":0 is that in the Elasticsearch datasource, "size":0 for the same type of query.)

Which issue(s) this PR fixes:

Contributes to #197

Special notes for your reviewer:
You can include the changes or cherry-pick this commit to enable backend flow everywhere. 021e747

No difference was observed between this change and the squad's non-regression dashboard https://clouddatasources.grafana.net/goto/2I2f2hWIR?orgId=1

Incorrectly introduced https://github.com/grafana/opensearch-datasource/pull/203/files#diff-44afe4fa7a308b985c56a75c710979bd17870768f6365e65baa40115849846e6R79-R80
Size is 0 in this datasource's frontend code flow query
Size is also 0 in Elasticsearch datasource's query
@fridgepoet fridgepoet changed the title Fix size discrepancy Lucene metrics: Remove "size":500 from backend processTimeSeriesQuery Sep 27, 2023
@fridgepoet fridgepoet marked this pull request as ready for review September 27, 2023 16:31
@fridgepoet fridgepoet requested a review from a team as a code owner September 27, 2023 16:31
@fridgepoet fridgepoet requested review from sarahzinger and kevinwcyu and removed request for a team September 27, 2023 16:31
@fridgepoet fridgepoet merged commit 1cf30ba into main Sep 29, 2023
4 checks passed
@fridgepoet fridgepoet deleted the fix-size-metrics branch September 29, 2023 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants