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

Clean up ./dev/run output #434

Merged
merged 1 commit into from
Jul 18, 2016
Merged

Clean up ./dev/run output #434

merged 1 commit into from
Jul 18, 2016

Conversation

nickva
Copy link
Contributor

@nickva nickva commented Jul 18, 2016

If connection succeeds eventually, don't report spurious error when retrying.

Turns ./dev/run output from this:

[ * ] Check node at https://127.0.0.1:15984/ ... failed: [Errno socket error] [Errno 111] Connection refused
[ * ] Check node at https://127.0.0.1:25984/ ... ok
[ * ] Check node at https://127.0.0.1:35984/ ... ok
[ * ] Check node at https://127.0.0.1:15984/ ... ok

to this:

[ * ] Check node at https://127.0.0.1:15984/ ... ok
[ * ] Check node at https://127.0.0.1:25984/ ... ok
[ * ] Check node at https://127.0.0.1:35984/ ... ok

Cleaner and a bit less scary for new developers.

@@ -355,6 +355,7 @@ def check_node_alive(url):
try:
with contextlib.closing(urlopen(url)):
pass
error = None
Copy link
Member

Choose a reason for hiding this comment

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

Logically, it should be in else block.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree, good point. Will move it to else block.

@kxepal
Copy link
Member

kxepal commented Jul 18, 2016

+1

If connection succeeds eventually, don't report spurious error when retrying.

Turns `./dev/run` output from this:

```
[ * ] Check node at https://127.0.0.1:15984/ ... failed: [Errno socket error] [Errno 111] Connection refused
[ * ] Check node at https://127.0.0.1:25984/ ... ok
[ * ] Check node at https://127.0.0.1:35984/ ... ok
[ * ] Check node at https://127.0.0.1:15984/ ... ok
```

to this:

```
[ * ] Check node at https://127.0.0.1:15984/ ... ok
[ * ] Check node at https://127.0.0.1:25984/ ... ok
[ * ] Check node at https://127.0.0.1:35984/ ... ok
```

Cleaner and a bit less scary for new developers.
@asfgit asfgit merged commit 9620ff6 into master Jul 18, 2016
@asfgit asfgit deleted the clean-dev-run-startup branch July 26, 2016 20:07
nickva pushed a commit to nickva/couchdb that referenced this pull request Sep 7, 2022
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants