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

Add minion health check endpoint #8574

Merged
merged 3 commits into from
Apr 25, 2022
Merged

Conversation

saurabhd336
Copy link
Contributor

@saurabhd336 saurabhd336 commented Apr 21, 2022

Add /health API to minion
GH issue: #8515

@codecov-commenter
Copy link

codecov-commenter commented Apr 21, 2022

Codecov Report

Merging #8574 (6e1eace) into master (5eddb19) will decrease coverage by 0.06%.
The diff coverage is 28.00%.

@@             Coverage Diff              @@
##             master    #8574      +/-   ##
============================================
- Coverage     70.71%   70.64%   -0.07%     
- Complexity     4314     4315       +1     
============================================
  Files          1690     1691       +1     
  Lines         88605    88624      +19     
  Branches      13438    13442       +4     
============================================
- Hits          62654    62608      -46     
- Misses        21567    21625      +58     
- Partials       4384     4391       +7     
Flag Coverage Δ
integration1 27.25% <28.00%> (-0.08%) ⬇️
integration2 25.80% <28.00%> (+0.05%) ⬆️
unittests1 66.92% <ø> (+<0.01%) ⬆️
unittests2 14.09% <8.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...inot/minion/api/resources/HealthCheckResource.java 0.00% <0.00%> (ø)
...ava/org/apache/pinot/minion/BaseMinionStarter.java 72.51% <23.07%> (-4.35%) ⬇️
...apache/pinot/controller/BaseControllerStarter.java 82.64% <100.00%> (ø)
...apache/pinot/minion/MinionAdminApiApplication.java 91.89% <100.00%> (+0.22%) ⬆️
...data/manager/realtime/DefaultSegmentCommitter.java 0.00% <0.00%> (-80.00%) ⬇️
...er/api/resources/LLCSegmentCompletionHandlers.java 43.56% <0.00%> (-18.82%) ⬇️
...ache/pinot/core/operator/docidsets/OrDocIdSet.java 86.36% <0.00%> (-13.64%) ⬇️
...data/manager/realtime/SegmentCommitterFactory.java 88.23% <0.00%> (-11.77%) ⬇️
...or/transform/function/IsNullTransformFunction.java 67.85% <0.00%> (-7.15%) ⬇️
...altime/ServerSegmentCompletionProtocolHandler.java 51.42% <0.00%> (-6.67%) ⬇️
... and 21 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 5eddb19...6e1eace. Read the comment docs.

@@ -493,7 +493,7 @@ protected void configure() {

private ServiceStatus.ServiceStatusCallback generateServiceStatusCallback(HelixManager helixManager) {
return new ServiceStatus.ServiceStatusCallback() {
private boolean _isStarted = false;
private volatile boolean _isStarted = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch. _statusDescription might also need to be volatile

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants