Skip to content

Commit

Permalink
Fix IT to set cursor keep alive parameter.
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
  • Loading branch information
Yury-Fridlyand committed Apr 3, 2023
1 parent 4948ac4 commit 37e7ebf
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.opensearch.client.RestHighLevelClient;
import org.opensearch.common.inject.Injector;
import org.opensearch.common.inject.ModulesBuilder;
import org.opensearch.common.unit.TimeValue;
import org.opensearch.sql.common.response.ResponseListener;
import org.opensearch.sql.common.setting.Settings;
import org.opensearch.sql.data.type.ExprCoreType;
Expand Down Expand Up @@ -94,7 +95,8 @@ public void onResponse(ExecutionEngine.QueryResponse response) {

@Override
public void onFailure(Exception e) {
fail();
e.printStackTrace();
fail(e.getMessage());
}
};

Expand Down Expand Up @@ -150,8 +152,9 @@ public void test_explain_not_supported() {

private Settings defaultSettings() {
return new Settings() {
private final Map<Key, Integer> defaultSettings = new ImmutableMap.Builder<Key, Integer>()
private final Map<Key, Object> defaultSettings = new ImmutableMap.Builder<Key, Object>()
.put(Key.QUERY_SIZE_LIMIT, 200)
.put(Key.SQL_CURSOR_KEEP_ALIVE, TimeValue.timeValueMinutes(1))
.build();

@Override
Expand Down

0 comments on commit 37e7ebf

Please sign in to comment.