Skip to content

Conversation

@vlastahajek
Copy link
Contributor

@vlastahajek vlastahajek commented Oct 15, 2025

Closes #

Proposed Changes

Added the possibility to disable gRPC compression via the disableGRPCCompression parameter in the ClientConfig.

Fixed also the setting of the user-agent header and related tests, where headers are now validated on the server side, because the client interceptor cannot capture transport headers. The user-agent header cannot be set via custom headers, because this header is erased on the transport level, and it is then set differently:
https://github.com/grpc/grpc-java/blob/f0a606710bc87da8848225d20710044c34fa4780/netty/src/main/java/io/grpc/netty/Utils.java#L292

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • A test has been added if appropriate
  • Tests pass
  • Commit messages are conventional

@vlastahajek vlastahajek force-pushed the feat/disable-gprc-compression branch from 2daa1a4 to 3777e23 Compare October 15, 2025 13:21
@codecov
Copy link

codecov bot commented Oct 15, 2025

Codecov Report

❌ Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 87.47%. Comparing base (a29d489) to head (6555e90).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...va/com/influxdb/v3/client/config/ClientConfig.java 91.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #289      +/-   ##
==========================================
+ Coverage   87.32%   87.47%   +0.14%     
==========================================
  Files          20       20              
  Lines        1247     1261      +14     
  Branches      201      204       +3     
==========================================
+ Hits         1089     1103      +14     
  Misses         74       74              
  Partials       84       84              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vlastahajek vlastahajek force-pushed the feat/disable-gprc-compression branch from 3777e23 to f6bc28d Compare October 15, 2025 13:29
Copy link
Contributor

@karel-rehor karel-rehor left a comment

Choose a reason for hiding this comment

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

Looks Good. I like the moving of simpleFlightServer in tests into the utility class. The Javadoc for ClientConfig was missing the new disableGRPCCompression property. I've gone ahead and added this.

fix: properly setting user-agent header
@vlastahajek vlastahajek force-pushed the feat/disable-gprc-compression branch from 863ab17 to 6555e90 Compare October 15, 2025 16:03
Copy link
Member

@bednar bednar left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@vlastahajek vlastahajek merged commit 8ec703b into main Oct 16, 2025
9 checks passed
@vlastahajek vlastahajek deleted the feat/disable-gprc-compression branch October 16, 2025 05:25
@vlastahajek vlastahajek changed the title feat: disable gprc compression feat: disable grpc compression Oct 16, 2025
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