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

Guarantee datasource read api is strong consistent read #1815

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

penghuo
Copy link
Collaborator

@penghuo penghuo commented Jul 7, 2023

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.

Signed-off-by: Peng Huo <penghuo@gmail.com>
@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
Signed-off-by: Peng Huo <penghuo@gmail.com>
(cherry picked from commit f38ffed)
@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 <penghuo@gmail.com>
(cherry picked from commit f38ffed)

Co-authored-by: Peng Huo <penghuo@gmail.com>
@@ -217,6 +217,8 @@ private List<DataSourceMetadata> searchInDataSourcesIndex(QueryBuilder query) {
searchSourceBuilder.query(query);
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");
Copy link
Member

@dreamer-89 dreamer-89 Jul 12, 2023

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
…search-project#1815)"

This reverts commit f38ffed.

Signed-off-by: Suraj Singh <surajrider@gmail.com>
MaxKsyunz pushed a commit that referenced this pull request Aug 24, 2023
…" (#2013)

This reverts commit f38ffed.

Signed-off-by: Suraj Singh <surajrider@gmail.com>
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 <surajrider@gmail.com>
(cherry picked from commit 627189b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
vamsi-amazon 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 <surajrider@gmail.com>
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