Skip to content

[backport to 2.x] Fix the discrepancy between Profile API and real time tasks API#777

Merged
amitgalitz merged 1 commit intoopensearch-project:2.xfrom
kaituo:discrepancy_2.x
Jan 9, 2023
Merged

[backport to 2.x] Fix the discrepancy between Profile API and real time tasks API#777
amitgalitz merged 1 commit intoopensearch-project:2.xfrom
kaituo:discrepancy_2.x

Conversation

@kaituo
Copy link
Collaborator

@kaituo kaituo commented Jan 9, 2023

Description

#770

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

This PR fixes the discrepancy by querying the result index when the total updates is less than 32. We have done similar things in profile API so I refactored reusable code to ProfileUtil. We also cached whether we have queried the result index and won't repeatedly issue the extra query.

Testing done:
1. repeated repro steps in opensearch-project#502 and verified the issue has been resolved.

Signed-off-by: Kaituo Li <kaituo@amazon.com>
@kaituo kaituo requested review from a team, amitgalitz and ylwu-amzn January 9, 2023 21:40
@amitgalitz amitgalitz merged commit 5559f40 into opensearch-project:2.x Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants