Add POST /_node/$node/_restart endpoint - #1543
Conversation
|
I would recommend removing the Once you do that, we can completely remove the stdout handling code from FYI @iilyak if you create these branches on the main |
|
Here's the code in the js suite that would need to be changed: https://github.com/apache/couchdb/blob/master/test/javascript/test_setup.js#L86 Should be a snap to replace the first with a call to Doing this would also let you confirm that the endpoint you're adding works with an actual test case or two. 😉 |
|
I want to provide a status update. There is a slight bump on the way to update JS test suite to use new endpoint. I am working on finding the solution. |
9abf607 to
d3b5339
Compare
|
@wohali I pushed a commit to remove |
|
@iilyak You're re-introducting a new endpoint, so that's fine. You removed the node-local one, right? I'm not sure it actually worked correctly in 2.0 so I don't personally consider that a deprecation. |
|
This LGTM. Tested as instructed: I also confirmed uptimes increment correctly on restarted node: |
7133eff to
ee308fa
Compare
Yes I did remove it. |
We need to be able to restart CouchDB from integration test suite. We used to have this feature, but it was removed. This PR brings this functionality back under `/_node/$node/_restart`.
ee308fa to
9be1213
Compare
|
@wohali Is there anything else I should do? Are you planing to do more reviews or I can merge it? |
|
@iilyak I'd prefer it if someone with more Erlang experience than I could do a review, but I have no objection at this point. Thanks! |
|
There is a +1 from @jaydoane |
Overview
We need to be able to restart CouchDB from integration test suite.
We used to have this feature, but it was removed.
This PR brings this functionality back under
/_node/$node/_restart.Testing recommendations
dev/runnullfew times and then it should increase gradually.Related Issues or Pull Requests
Checklist