eiri commented on issue #3603:
URL: https://github.com/apache/couchdb/issues/3603#issuecomment-906552956


   All right, so the strange part is that I can reproduce this on `couchdb:3` 
docker image with the following ddoc, but can't reproduce when I'm building 
from repo's `3.x` branch (nor from tag `3.1.1`) and changing `dev/run`'s `.ini` 
configs to match docker's.
   
   File: `alpha.json`
   ```json
   {
       "indexes": {
           "searchindex001": {
               "index": "function(doc) { index(\"default\", doc._id); }"
           }
       }
   }
   ``` 
   
   Against docker:
   ```
   $ curl -q -K .curlrc http://127.0.0.1:15984/koi -X PUT
   {"ok":true}
   
   $ curl -q -K .curlrc http://127.0.0.1:15984/koi -X POST -d '{"name": 
"Alice", "number": 42}'
   
{"ok":true,"id":"d9d564521ee139ec83134600f4000e0f","rev":"1-7b54ca479c9043f8cc4cd83777ce6b75"}
   
   $ curl -q -K .curlrc http://127.0.0.1:15984/koi/_design/alpha -X PUT --data 
@alpha.json
   {"ok":true,"id":"_design/alpha","rev":"1-b445a33cf17da10d2f2502f68f58462b"}
   
   $ curl -q -K .curlrc 
http://127.0.0.1:15984/koi/_design/alpha/_search/searchindex001 -X POST -d 
'{"query": "name:Alice*"}'
   
{"error":"{badarg,[{erlang,monitor,[process,{main,'[email protected]'}],[]},\n 
        {ioq,submit_request,2,[{file,\"src/ioq.erl\"},{line,187}]},\n         
{ioq,maybe_submit_request,1,[{file,\"src/ioq.erl\"},{line,150}]},\n         
{ioq,handle_info,2,[{file,\"src/ioq.erl\"},{line,123}]},\n         
{gen_server,try_dispatch,4,[{file,\"gen_server.erl\"},{line,616}]},\n         
{gen_server,handle_msg,6,[{file,\"gen_server.erl\"},{line,686}]},\n         
{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,247}]}]}","reason":"{gen_server,call,\n
            [ioq,\n             
{request,<0.286.0>,{pread_iolist,4490},other,<0.435.0>,undefined},\n            
 infinity]}","ref":2383229562}
   ```
   
   Against repo:
   ```
   $ curl -q -K .curlrc http://127.0.0.1:15984/koi -X PUT
   {"ok":true}
   
   $ curl -q -K .curlrc http://127.0.0.1:15984/koi -X POST -d '{"name": 
"Alice", "number": 42}'
   
{"ok":true,"id":"d9d564521ee139ec83134600f4000e0f","rev":"1-7b54ca479c9043f8cc4cd83777ce6b75"}
   
   $ curl -q -K .curlrc http://127.0.0.1:15984/koi/_design/alpha -X PUT --data 
@alpha.json
   {"ok":true,"id":"_design/alpha","rev":"1-b445a33cf17da10d2f2502f68f58462b"}
   
   $ curl -q -K .curlrc 
http://127.0.0.1:15984/koi/_design/alpha/_search/searchindex001 -X POST -d 
'{"query": "name:Alice*"}'
   {"error":"ou_est_clouseau","reason":"Could not connect to the Clouseau Java 
service at [email protected]"}
   ```
   
   Since `HEAD` behaves as expected with `ou_est_clouseau` error, I suspect 
this is some kind of configuration issue, but I can't figure out values in 
`ini` config to reproduce it.
   
   If anyone will manage to induce this locally in dev environment, please 
leave steps in a comment.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to