Skip to content

[backport to 2.5] Fix the discrepancy between Profile API and real time tasks API#776

Merged
amitgalitz merged 1 commit intoopensearch-project:2.5from
kaituo:discrepancy_2.5
Jan 9, 2023
Merged

[backport to 2.5] Fix the discrepancy between Profile API and real time tasks API#776
amitgalitz merged 1 commit intoopensearch-project:2.5from
kaituo:discrepancy_2.5

Conversation

@kaituo
Copy link
Collaborator

@kaituo kaituo commented Jan 9, 2023

Description

#770

Signed-off-by: Kaituo Li kaituo@amazon.com

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

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:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove jackson-databind and jackson-annotations dependencies now coming from core [BUG] Discrepancy between Profile API and realtime tasks API

3 participants