Skip to content

Commit

Permalink
Revert "Guarantee datasource read api is strong consistent read (open…
Browse files Browse the repository at this point in the history
…search-project#1815)"

This reverts commit f38ffed.
  • Loading branch information
dreamer-89 committed Aug 22, 2023
1 parent b3fd4c4 commit ff48c59
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 ff48c59

Please sign in to comment.