Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion connector_elasticsearch/tools/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ def _get_es_client(self):
if backend.auth_type == "http":
auth = (backend.es_user, backend.es_password)
return elasticsearch.Elasticsearch(
[backend.es_server_host], http_auth=auth, use_ssl=backend.ssl
[backend.es_server_host],
http_auth=auth,
use_ssl=backend.ssl,
timeout=max(backend.es_timeout, 1),
retry_on_timeout=backend.es_retry_on_timeout,
max_retries=max(0, backend.es_max_retries),
)

def test_connection(self):
Expand Down