Skip to content

Implement custom HTTP client for thrift#183

Merged
kravets-levko merged 3 commits intomainfrom
custom-thrift-http-client
Sep 28, 2023
Merged

Implement custom HTTP client for thrift#183
kravets-levko merged 3 commits intomainfrom
custom-thrift-http-client

Conversation

@kravets-levko
Copy link
Copy Markdown
Contributor

@kravets-levko kravets-levko commented Sep 25, 2023

In order to implements some features (like better error handling) or fix weird behavior (errors not being associated with requests) we were patching the thrift library. This was really hacky way to achieve our goals, but while patch was small and everything worked we kept this solution. However, for #174 we needed to patch thrift too much, so we ended up creating custom HTTP client taking the one from thrift as an example, but adjusting it for our needs. Of course, it's still a bit hacky, but a way less than it was before. And as the new HTTP client belongs to our code, we no longer need to patch the thrift library

Signed-off-by: Levko Kravets <levko.ne@gmail.com>
Signed-off-by: Levko Kravets <levko.ne@gmail.com>
@kravets-levko kravets-levko force-pushed the custom-thrift-http-client branch from 9f76b92 to dd90d01 Compare September 25, 2023 10:46
@databricks databricks deleted a comment from github-actions Bot Sep 25, 2023
@kravets-levko kravets-levko temporarily deployed to azure-prod September 25, 2023 10:46 — with GitHub Actions Inactive
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 25, 2023

Codecov Report

Patch coverage is 64.61% of modified lines.

Files Changed Coverage
lib/DBSQLClient.ts ø
lib/connection/connections/ThriftHttpConnection.ts 59.25%
lib/connection/connections/HttpConnection.ts 90.90%

📢 Thoughts on this report? Let us know!.

@kravets-levko kravets-levko temporarily deployed to azure-prod September 27, 2023 08:35 — with GitHub Actions Inactive
Comment thread lib/DBSQLClient.ts
Comment thread lib/connection/connections/ThriftHttpConnection.ts
@kravets-levko kravets-levko merged commit 911e5b0 into main Sep 28, 2023
@kravets-levko kravets-levko deleted the custom-thrift-http-client branch September 28, 2023 07:11
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.

3 participants