Skip to content

Guarantee datasource read api is strong consistent read - #1815

Merged
penghuo merged 1 commit into
opensearch-project:mainfrom
penghuo:issue-1801
Jul 10, 2023
Merged

penghuo merged 1 commit into
opensearch-project:mainfrom
penghuo:issue-1801

Conversation

@penghuo

@penghuo penghuo commented Jul 7, 2023 •

Copy link
Copy Markdown
Collaborator

Description

Will add IT later because current IT RestTestIT does not support configure nodes for each test and I do not want to configure nodes for all the IT now which will be also risky.

Create an issue for impove IT framework.#1816

Issues Resolved

#1801

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

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.

@penghuo
penghuo merged commit f38ffed into opensearch-project:main Jul 10, 2023
opensearch-trigger-bot Bot pushed a commit that referenced this pull request Jul 10, 2023
@penghuo penghuo added the v2.9.0 v2.9.0 label Jul 10, 2023
penghuo added a commit that referenced this pull request Jul 10, 2023
Signed-off-by: Peng Huo <[email protected]>
(cherry picked from commit f38ffed)

Co-authored-by: Peng Huo <[email protected]>
searchSourceBuilder.size(DATASOURCE_QUERY_RESULT_SIZE);
searchRequest.source(searchSourceBuilder);
// strongly consistent reads is requred. more info https://github.com/opensearch-project/sql/issues/1801.
searchRequest.preference("_primary");

@dreamer-89 dreamer-89 Jul 12, 2023 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@penghuo : Is there any data around TPS requirement for this search query ? I am thinking if this can have any performance implications for an overwhelmed primary shard.

dreamer-89 added a commit to dreamer-89/sql that referenced this pull request Aug 22, 2023
dreamer-89 added a commit to dreamer-89/sql that referenced this pull request Aug 22, 2023
MaxKsyunz pushed a commit that referenced this pull request Aug 24, 2023
opensearch-trigger-bot Bot pushed a commit that referenced this pull request Aug 24, 2023
…" (#2013)

This reverts commit f38ffed.

Signed-off-by: Suraj Singh <[email protected]>
(cherry picked from commit 627189b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
vamsimanohar pushed a commit that referenced this pull request Sep 1, 2023
…" (#2013) (#2031)

This reverts commit f38ffed.


(cherry picked from commit 627189b)

Signed-off-by: Suraj Singh <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

5 participants