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)

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>
  • Loading branch information
github-actions[bot] committed Aug 24, 2023
1 parent 2c1212e commit 411ad6d
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 411ad6d

Please sign in to comment.