You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2021/08/26 21:25:36 UTC
[GitHub] [couchdb] kocolosk commented on issue #3603: CouchDB instance without search node crashes when calling a search request
kocolosk commented on issue #3603:
URL: https://github.com/apache/couchdb/issues/3603#issuecomment-906754022
Intriguing! I think I figured it out. The difference is that the `couchdb:3` container is configured without any node name and is not running in distributed mode. In that mode trying to monitor the remote Clouseau process triggers a badarg error:
```
# /opt/couchdb/erts-9.3.3.14/bin/erl -boot /opt/couchdb/releases/3.1.1/start_clean
Erlang/OTP 20 [erts-9.3.3.14] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V9.3.3.14 (abort with ^G)
1> erlang:monitor(process, {main, 'clouseau@127.0.0.1'}).
** exception error: bad argument
in function monitor/2
called as monitor(process,{main,'clouseau@127.0.0.1'})
```
whereas in dev mode we are running a CouchDB Erlang node and the behavior changes to deliver a 'DOWN` message to the mailbox:
```
# /opt/couchdb/erts-9.3.3.14/bin/erl -boot /opt/couchdb/releases/3.1.1/start_clean -name test@127.0.0.1
Erlang/OTP 20 [erts-9.3.3.14] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V9.3.3.14 (abort with ^G)
(test@127.0.0.1)1> erlang:monitor(process, {main, 'clouseau@127.0.0.1'}).
#Ref<0.2127152124.2865758209.248364>
(test@127.0.0.1)2> receive M -> M end.
{'DOWN',#Ref<0.2127152124.2865758209.248364>,process,
{main,'clouseau@127.0.0.1'},
noconnection}
(test@127.0.0.1)3>
```
Not sure offhand what the right fix is here. Seems like we ought to be able to run gracefully without the Erlang distribution, although it's news to me that the Docker image is configured that way.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org