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

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

Merged
merged 7 commits into from Mar 3, 2021

Conversation

ahsanbarkati
Copy link
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
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.

edgraph/access_ee.go Outdated Show resolved Hide resolved
dgraph/cmd/alpha/admin.go Outdated Show resolved Hide resolved
@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.

None yet

2 participants