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

Handle null segment lineage ZNRecord for getSelectedSegments API #7752

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

jackjlli
Copy link
Member

Description

This PR handles null segment lineage ZNRecord for getSelectedSegments API. When the ZNRecord is null, we don't need to filter any segments and directly return the selected segments to the client side.

Upgrade Notes

Does this PR prevent a zero down-time upgrade? (Assume upgrade order: Controller, Broker, Server, Minion)

  • Yes (Please label as backward-incompat, and complete the section below on Release Notes)

Does this PR fix a zero-downtime upgrade introduced earlier?

  • Yes (Please label this as backward-incompat, and complete the section below on Release Notes)

Does this PR otherwise need attention when creating release notes? Things to consider:

  • New configuration options
  • Deprecation of configurations
  • Signature changes to public methods/interfaces
  • New plugins added or old plugins removed
  • Yes (Please label this PR as release-notes and complete the section on Release Notes)

Release Notes

Documentation

@jackjlli jackjlli requested a review from snleee November 11, 2021 22:45
@jackjlli jackjlli force-pushed the handle-null-segment-lineage branch from 31fe098 to ccd58ac Compare November 11, 2021 23:05
@jackjlli jackjlli force-pushed the handle-null-segment-lineage branch from ccd58ac to 8743bab Compare November 11, 2021 23:06
@jtao15
Copy link
Contributor

jtao15 commented Nov 11, 2021

LGTM

@codecov-commenter
Copy link

codecov-commenter commented Nov 11, 2021

Codecov Report

Merging #7752 (8743bab) into master (13c9ee9) will decrease coverage by 6.36%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #7752      +/-   ##
============================================
- Coverage     71.49%   65.12%   -6.37%     
+ Complexity     4064     4063       -1     
============================================
  Files          1577     1531      -46     
  Lines         80554    78675    -1879     
  Branches      11965    11766     -199     
============================================
- Hits          57592    51241    -6351     
- Misses        19078    23792    +4714     
+ Partials       3884     3642     -242     
Flag Coverage Δ
integration1 ?
integration2 ?
unittests1 68.65% <ø> (+0.05%) ⬆️
unittests2 14.53% <0.00%> (-0.03%) ⬇️

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

Impacted Files Coverage Δ
...ntroller/helix/core/PinotHelixResourceManager.java 58.49% <0.00%> (-3.84%) ⬇️
...a/org/apache/pinot/common/metrics/MinionMeter.java 0.00% <0.00%> (-100.00%) ⬇️
...g/apache/pinot/common/metrics/ControllerMeter.java 0.00% <0.00%> (-100.00%) ⬇️
.../apache/pinot/common/metrics/BrokerQueryPhase.java 0.00% <0.00%> (-100.00%) ⬇️
.../apache/pinot/common/metrics/MinionQueryPhase.java 0.00% <0.00%> (-100.00%) ⬇️
...he/pinot/common/messages/SegmentReloadMessage.java 0.00% <0.00%> (-100.00%) ⬇️
...pinot/core/data/manager/realtime/TimerService.java 0.00% <0.00%> (-100.00%) ⬇️
...pinot/minion/exception/TaskCancelledException.java 0.00% <0.00%> (-100.00%) ⬇️
...not/common/exception/HttpErrorStatusException.java 0.00% <0.00%> (-100.00%) ⬇️
...t/core/startree/plan/StarTreeDocIdSetPlanNode.java 0.00% <0.00%> (-100.00%) ⬇️
... and 363 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 13c9ee9...8743bab. Read the comment docs.

@jackjlli jackjlli merged commit 570e983 into master Nov 11, 2021
@jackjlli jackjlli deleted the handle-null-segment-lineage branch November 11, 2021 23:45
kriti-sc pushed a commit to kriti-sc/incubator-pinot that referenced this pull request Dec 12, 2021
…che#7752)

Co-authored-by: Jack Li(Analytics Engineering) <jlli@jlli-mn1.linkedin.biz>
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