Skip to content

Conversation

@eladkal
Copy link
Contributor

@eladkal eladkal commented Nov 17, 2023

Starting elasticsearch>=8 there is no more use_ssl
see https://github.com/apache/airflow/pull/33135/files#r1285347163

mentioning also open question about supporting elasticsearch<8
#33281 (comment)

cc @sunank200 @Owen-CH-Leung


EDIT:
This PR practically reverts #33281 as provider setup is to support elasticsearch>=8

Thus users can't install older version of the library anyway.

Copy link
Contributor

@harishkesavarao harishkesavarao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with @Taragolis to remove it altogether from the documentation, but also updating the doc here pending min version decision sounds good.

@eladkal eladkal changed the title update elasticsearch doc for use_ssl parameter Remove backport support for elasticsearch<8 Nov 25, 2023
@eladkal eladkal requested a review from Taragolis November 25, 2023 19:17
@eladkal eladkal changed the title Remove backport support for elasticsearch<8 Cleanup code for elasticsearch<8 Nov 25, 2023
"""
with conf_vars(
{
("elasticsearch_configs", "use_ssl"): "True",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to keep it in the tests for check that we do not use non-existed parameters

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which parameter are you worried about?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

("elasticsearch_configs", "use_ssl"): "True", This mostly for check that we remove it from resulting arguments here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes but we no longer need it because we are on elasticsearch>7
the only reference to this parameter was in the docs which was wrong

@eladkal eladkal requested a review from Taragolis November 29, 2023 19:02
"""
with conf_vars(
{
("elasticsearch_configs", "use_ssl"): "True",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

("elasticsearch_configs", "use_ssl"): "True", This mostly for check that we remove it from resulting arguments here

@eladkal eladkal merged commit 396b1ba into apache:main Dec 1, 2023
@eladkal eladkal deleted the elastic branch December 1, 2023 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants