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 <surajrider@gmail.com>
  • Loading branch information
dreamer-89 authored Aug 24, 2023
1 parent 6dcda70 commit 627189b
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 627189b

Please sign in to comment.