Skip to content

Fix(admin-endpoints): Error out if the request is rejected by the server#7511

Merged
ahsanbarkati merged 7 commits intomasterfrom
ahsan/fix-admin-endpoints
Mar 3, 2021
Merged

Fix(admin-endpoints): Error out if the request is rejected by the server#7511
ahsanbarkati merged 7 commits intomasterfrom
ahsan/fix-admin-endpoints

Conversation

@ahsanbarkati
Copy link
Copy Markdown
Contributor

@ahsanbarkati ahsanbarkati commented Mar 3, 2021

A few admin endpoints such as /admin/shutdown, /admin/drain, admin/config sends a success response even if the server rejects the request. This PR fixes the issue.


This change is Reviewable

Copy link
Copy Markdown
Contributor

@NamanJain8 NamanJain8 left a comment

Choose a reason for hiding this comment

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

Few minor comments. Rest looks good.

Comment thread edgraph/access_ee.go Outdated
Comment thread dgraph/cmd/alpha/admin.go Outdated
@ahsanbarkati ahsanbarkati merged commit 7b4d095 into master Mar 3, 2021
@ahsanbarkati ahsanbarkati deleted the ahsan/fix-admin-endpoints branch March 3, 2021 16:19
aman-bansal pushed a commit that referenced this pull request Mar 9, 2021
…ver (#7511)

A few admin endpoints such as /admin/shutdown, /admin/drain, admin/config 
sends a success response even if the server rejects the request. This change
fixes this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants