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 missing healthcheck router for gateway #5764

Merged
merged 1 commit into from
Apr 5, 2018

Conversation

harshavardhana
Copy link
Member

@harshavardhana harshavardhana commented Apr 4, 2018

Description

Add missing healthcheck router for gateway

Motivation and Context

Missing healthcheck router

How Has This Been Tested?

Manually

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added unit tests to cover my changes.
  • I have added/updated functional tests in mint. (If yes, add mint PR # here: )
  • All new and existing tests passed.

@nitisht nitisht requested review from poornas and nitisht April 4, 2018 04:34
@codecov
Copy link

codecov bot commented Apr 4, 2018

Codecov Report

Merging #5764 into master will decrease coverage by <.01%.
The diff coverage is 16.66%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #5764      +/-   ##
=========================================
- Coverage    60.6%   60.6%   -0.01%     
=========================================
  Files         196     196              
  Lines       29098   29036      -62     
=========================================
- Hits        17635   17597      -38     
+ Misses       9960    9937      -23     
+ Partials     1503    1502       -1
Impacted Files Coverage Δ
cmd/gateway-main.go 21.48% <0%> (+3.35%) ⬆️
cmd/routers.go 51.02% <100%> (-21.08%) ⬇️
cmd/retry.go 82.75% <0%> (-5.18%) ⬇️
cmd/xl-v1-common.go 100% <0%> (+5.12%) ⬆️

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 d67e423...48a3be4. Read the comment docs.

@balamurugana
Copy link
Member

Mint Automation

Test Result
mint-xl.sh ✔️
mint-fs.sh ✔️
mint-dist-xl.sh ✔️
mint-gateway-s3.sh ✔️
mint-gateway-azure.sh ✔️

@@ -57,6 +57,43 @@ func registerDistXLRouters(mux *router.Router, endpoints EndpointList) error {
return registerBrowserPeerRPCRouter(mux)
}

// List of some generic handlers which are applied for all incoming requests.
var globalHandlers = []HandlerFunc{
Copy link
Contributor

Choose a reason for hiding this comment

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

How about moving the globalHandlers var to globals.go

Copy link
Member Author

Choose a reason for hiding this comment

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

not kept there on purpose @nitisht since routers.go is where we need to eventually converge.

Copy link
Member Author

Choose a reason for hiding this comment

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

new handlers should be added here not in globals.go, a global entity is simply added for common usage it can be passed in as a value commonly. but can be perhaps moved to common-main.go

@nitisht nitisht merged commit 30ab71c into minio:master Apr 5, 2018
@harshavardhana harshavardhana deleted the add-healthcheck branch April 5, 2018 02:21
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