Skip to content

Fix Pinot client scheme property merge#18607

Open
wolfkill wants to merge 1 commit into
apache:masterfrom
wolfkill:fix/client-scheme-property-merge
Open

Fix Pinot client scheme property merge#18607
wolfkill wants to merge 1 commit into
apache:masterfrom
wolfkill:fix/client-scheme-property-merge

Conversation

@wolfkill
Copy link
Copy Markdown
Contributor

Summary

  • Preserve a previously configured JsonAsyncHttpPinotClientTransportFactory scheme when connection properties omit scheme
  • Keep the default http fallback if the configured scheme is null
  • Add regression coverage for setter/property precedence and null fallback cases

Fixes #14500.

Testing

  • JAVA_HOME=/opt/homebrew/opt/openjdk@21/libexec/openjdk.jdk/Contents/Home ./mvnw -pl pinot-clients/pinot-java-client -am -Dtest=JsonAsyncHttpPinotClientTransportTest -Dsurefire.failIfNoSpecifiedTests=false test
  • git diff --check upstream/master...HEAD

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.39%. Comparing base (9f8eb1a) to head (c7a447d).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #18607      +/-   ##
============================================
+ Coverage     64.37%   64.39%   +0.01%     
  Complexity     1137     1137              
============================================
  Files          3335     3335              
  Lines        206065   206065              
  Branches      32136    32136              
============================================
+ Hits         132649   132686      +37     
+ Misses        62760    62733      -27     
+ Partials      10656    10646      -10     
Flag Coverage Δ
custom-integration1 100.00% <ø> (ø)
integration 100.00% <ø> (ø)
integration1 100.00% <ø> (ø)
integration2 0.00% <ø> (ø)
java-21 64.39% <100.00%> (+0.01%) ⬆️
temurin 64.39% <100.00%> (+0.01%) ⬆️
unittests 64.38% <100.00%> (+0.01%) ⬆️
unittests1 56.77% <ø> (+<0.01%) ⬆️
unittests2 36.95% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wolfkill wolfkill marked this pull request as ready for review May 28, 2026 11:51
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.

[pinot-client] JsonAsyncHttpPinotClientTransportFactory builder pattern is implemented incorrectly for scheme

2 participants