Skip to content

Make concurrent-scheduling dispatch helpers protected for subclass extension#18431

Merged
raghavyadav01 merged 2 commits intoapache:masterfrom
noob-se7en:bump-concurrent-scheduling-visibility
May 7, 2026
Merged

Make concurrent-scheduling dispatch helpers protected for subclass extension#18431
raghavyadav01 merged 2 commits intoapache:masterfrom
noob-se7en:bump-concurrent-scheduling-visibility

Conversation

@noob-se7en
Copy link
Copy Markdown
Contributor

@noob-se7en noob-se7en commented May 6, 2026

Summary

Bump PinotTaskManager#shouldUseConcurrentPath and #resolveConcurrentScheduling from package-private @VisibleForTesting to protected @VisibleForTesting, so subclasses in other packages can integrate with the concurrent scheduling path introduced in #18272.

noob-se7en and others added 2 commits May 6, 2026 12:32
…tension

Bumps PinotTaskManager#shouldUseConcurrentPath and #resolveConcurrentScheduling
from package-private @VisibleForTesting to protected @VisibleForTesting so that
subclasses in other packages can integrate with the concurrent scheduling path
introduced in apache#18272.

In particular, this lets a subclass override resolveConcurrentScheduling to
plug in a different per-table policy (for example, defaulting concurrent
scheduling to true for specific task types) and have its override invoked from
the parent's shouldUseConcurrentPath. Without this change, a different-package
subclass cannot polymorphically override the package-private resolver — Java
treats the same-named method as hidden rather than overridden — so the
extension hook is effectively unreachable.

No behavioral change. The methods retain @VisibleForTesting; existing same-
package tests continue to work unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@noob-se7en noob-se7en added extension-point Adds or modifies an extension/SPI point minor Small or trivial change labels May 6, 2026
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 6, 2026

Codecov Report

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

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #18431      +/-   ##
============================================
- Coverage     63.59%   63.57%   -0.02%     
  Complexity     1717     1717              
============================================
  Files          3252     3252              
  Lines        199119   199119              
  Branches      30857    30857              
============================================
- Hits         126627   126590      -37     
- Misses        62425    62452      +27     
- Partials      10067    10077      +10     
Flag Coverage Δ
custom-integration1 100.00% <ø> (ø)
integration 100.00% <ø> (ø)
integration1 100.00% <ø> (ø)
integration2 0.00% <ø> (ø)
java-21 63.57% <ø> (-0.02%) ⬇️
temurin 63.57% <ø> (-0.02%) ⬇️
unittests 63.57% <ø> (-0.02%) ⬇️
unittests1 55.66% <ø> (-0.02%) ⬇️
unittests2 34.93% <ø> (-0.01%) ⬇️

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.

@noob-se7en
Copy link
Copy Markdown
Contributor Author

@swaminathanmanish @xiangfu0 @Jackie-Jiang pls help with merge

@raghavyadav01 raghavyadav01 merged commit 5e5accb into apache:master May 7, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension-point Adds or modifies an extension/SPI point minor Small or trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants