Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CALCITE-6529] Use persistent sessionContext in AvaticaCommonsHttpClie… #249

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

szucsvillo
Copy link

…ntImpl

Copy link
Contributor

@mihaibudiu mihaibudiu left a comment

Choose a reason for hiding this comment

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

I am not familiar with this part of the codebase, but these changes look reasonable.

@mihaibudiu
Copy link
Contributor

The CI failed for macos

Copy link
Member

@caicancai caicancai left a comment

Choose a reason for hiding this comment

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

Please modify the commit message and PR title to: [CALCITE-6529] xxxxx

@@ -109,34 +110,33 @@ protected void initializeClient(PoolingHttpClientConnectionManager pool,
HttpClientBuilder httpClientBuilder = HttpClients.custom().setConnectionManager(pool)
.setDefaultRequestConfig(requestConfig);
this.client = httpClientBuilder.build();

Copy link
Contributor

Choose a reason for hiding this comment

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

have you tried setting these directly on the client object ?

Copy link
Author

Choose a reason for hiding this comment

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

Not yet but i will try.

Copy link
Author

Choose a reason for hiding this comment

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

I have tried setting these directly on the client object, but I think it would require quite a lot of refactoring. For example, practically the whole AvaticaHttpClientFactoryImpl class should be rewritten.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good point.
Maybe in a followup ticket.

@szucsvillo szucsvillo changed the title CALCITE-6529: Use persistent sessionContext in AvaticaCommonsHttpClie… [CALCITE-6529] Use persistent sessionContext in AvaticaCommonsHttpClie… Sep 16, 2024
@@ -109,34 +110,33 @@ protected void initializeClient(PoolingHttpClientConnectionManager pool,
HttpClientBuilder httpClientBuilder = HttpClients.custom().setConnectionManager(pool)
.setDefaultRequestConfig(requestConfig);
this.client = httpClientBuilder.build();

Copy link
Contributor

Choose a reason for hiding this comment

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

Good point.
Maybe in a followup ticket.

@stoty
Copy link
Contributor

stoty commented Sep 20, 2024

Please fix the commit message to use square brackets, @szucsvillo .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants