GitHub user eiri opened a pull request:
https://github.com/apache/couchdb-chttpd/pull/123
Fix _node/$node/_system endpoint
The endpoint is using the same handler as a backdoor interface, which only
works for the requests to a local $node. For rpc calls to the remote nodes, as
it's done on `/_node` endpoints, `handle_node_req` handler is getting
`{badrpc,{'EXIT',normal}}` response and fails with `invalid_ejson` exception.
The change splits stats gathering from stats responding, allowing to use
former on both `/_node/$node/_system` and backend's `/_system`
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloudant/couchdb-chttpd
65878-fix-_node-_system-endpoint
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-chttpd/pull/123.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #123
----
commit f3209871eeedf9228c2ef1e35512a8128e0e8ba7
Author: Eric Avdey <[email protected]>
Date: 2016-05-27T17:59:23Z
Fix _node/$node/_system endpoint
The endpoint was using the same handler as a backdoor interface,
which only works for the requests to a local $node.
For rpc calls to the remote nodes, as it's done on /_node endpoints,
handle_node_req handler was getting {badrpc,{'EXIT',normal}} response
and failed with invalid_ejson exception as a result.
The change splits stats gathering from stats responding
allowing to use former on both /_node/$node/_system and
/_system on the backdoor interface.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---