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

Allow liveness check using query parameter during server shutdown #10111

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

Jackie-Jiang
Copy link
Contributor

On top of #9915, also allow liveness check using query parameter to pass the shut down filter.

@@ -46,6 +48,9 @@
@Path("/")
public class HealthCheckResource {

@Inject
private AtomicBoolean _shutDownInProgress;
Copy link
Contributor

Choose a reason for hiding this comment

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

who is ingesting this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In AdminApiApplication

@codecov-commenter
Copy link

codecov-commenter commented Jan 11, 2023

Codecov Report

Merging #10111 (e81d3a4) into master (2c798e7) will increase coverage by 0.03%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master   #10111      +/-   ##
============================================
+ Coverage     70.42%   70.46%   +0.03%     
- Complexity     5745     5748       +3     
============================================
  Files          1992     1995       +3     
  Lines        107980   108021      +41     
  Branches      16415    16421       +6     
============================================
+ Hits          76050    76122      +72     
+ Misses        26593    26577      -16     
+ Partials       5337     5322      -15     
Flag Coverage Δ
integration1 24.66% <0.00%> (-0.01%) ⬇️
integration2 24.49% <0.00%> (+0.03%) ⬆️
unittests1 68.06% <ø> (+0.07%) ⬆️
unittests2 13.69% <ø> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
...inot/server/api/resources/HealthCheckResource.java 0.00% <0.00%> (ø)
...che/pinot/server/api/resources/ShutDownFilter.java 28.57% <0.00%> (-11.43%) ⬇️
...g/apache/pinot/server/api/resources/ErrorInfo.java 0.00% <0.00%> (-100.00%) ⬇️
...t/server/api/resources/DefaultExceptionMapper.java 0.00% <0.00%> (-75.00%) ⬇️
.../pinot/server/api/resources/TableSizeResource.java 80.00% <0.00%> (-8.00%) ⬇️
...nction/DistinctCountBitmapAggregationFunction.java 47.66% <0.00%> (-6.74%) ⬇️
...gregation/function/StUnionAggregationFunction.java 73.52% <0.00%> (-2.95%) ⬇️
...e/pinot/segment/local/io/util/PinotDataBitSet.java 95.62% <0.00%> (-1.46%) ⬇️
...ery/optimizer/filter/MergeEqInFilterOptimizer.java 92.59% <0.00%> (-1.24%) ⬇️
...org/apache/pinot/core/common/ObjectSerDeUtils.java 90.61% <0.00%> (-0.77%) ⬇️
... and 32 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Jackie-Jiang Jackie-Jiang merged commit 5a64475 into apache:master Jan 11, 2023
@Jackie-Jiang Jackie-Jiang deleted the fix_server_shutdown branch January 11, 2023 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants