Skip to content

Commit

Permalink
Revert "Guarantee datasource read api is strong consistent read (#1815)…
Browse files Browse the repository at this point in the history
…" (#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>
  • Loading branch information
1 parent 986e495 commit c3071fd
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,6 @@ 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");
ActionFuture<SearchResponse> searchResponseActionFuture;
try (ThreadContext.StoredContext ignored =
client.threadPool().getThreadContext().stashContext()) {
Expand Down

0 comments on commit c3071fd

Please sign in to comment.