iilyak opened a new pull request #1590: Implement convinience `mem3:ping/2` function URL: https://github.com/apache/couchdb/pull/1590 ## Overview Sometimes in operations it is helpful to re-establish connection between erlang nodes. Usually it is achieved by calling `net_adm:ping/1`. However the `ping` function provided by OTP uses `infinity` timeout. Which causes indefinite hang in some cases. This PR adds convinience function to be used instead of `net_adm:ping/1`. ## Testing recommendations 1. Start dev cluster using `dev/run --admin=adm:pass` 2. Go to remsh `dev/remsh` 3. Call `mem3:ping('[email protected]').` you should see `pong`. 3. Call `mem3:ping('[email protected]').` you should see `pang`. 4. Try variant with specified timeout - `mem3:ping('[email protected]', 100).` you should see `pong`. - `mem3:ping('[email protected]', 100).` you should see `pang`. ## Related Issues or Pull Requests N/A ## Checklist - [x] Code is written and works correctly; - [ ] Changes are covered by tests; - [ ] Documentation reflects the changes;
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
