apache / apache/couchdb

search engine clouseau not working with couchdb version 3.2.1 and 3.2.2 (working with version 3.2.0)

Open
#4,369 2 comments 0 reactions 0 assignees View on GitHub
bug needs-triage
Dominant language
Erlang
Stars
7k
Forks
1.1k
Avg merge
1d 16h
Merged PRs (30d)
9

Description

## Description

my Search Index in couchdb 3.2.0 is working correct, but in version 3.2.1 and 3.2.2 it is not working any more.

## Steps to Reproduce

clouseau integration see https://docs.couchdb.org/en/stable/install/search.html

clouseau version i used is 2.21.0 https://github.com/cloudant-labs/clouseau/releases/tag/2.21.0

create a search index on a database

## Expected Behaviour

search with te search index and returns results

## Your Environment

single node couchdb setup

Working environment
{"couchdb":"Welcome","version":"3.2.0","git_sha":"efb409bba","uuid":"6aeec5c8581fff8477eb52da44bbcff3","features":["search","access-ready","partitioned","pluggable-storage-engines","reshard","scheduler"],"vendor":{"name":"The Apache Software Foundation"}}

Not Working environment {"couchdb":"Welcome","version":"3.2.1","git_sha":"efb409bba","uuid":"6aeec5c8581fff8477eb52da44bbcff3","features":["search","access-ready","partitioned","pluggable-storage-engines","reshard","scheduler"],"vendor":{"name":"The Apache Software Foundation"}}

/etc/clouseau.ini
[clouseau]
name=clouseau@127.0.0.1
cookie=testing
dir=/var/lib/clouseau
max_indexes_open=500

/opt/couchdb/etc/local.d/test.ini
[admins]
admin =

[couchdb]
uuid =
file_compression = none
single_node = true

[couch_httpd_auth]
secret =

[chttpd]
bind_address = 0.0.0.0
port = 5984

[cluster]
n = 1

* CouchDB version used to test is: 3.2.0, 3.2.1 and 3.2.2

Errors that i see with couchdb version 3.2.1 and 3.2.2 is the following:

{{nocatch,{<<"TypeError">>,{[]}}},[{couch_os_process,prompt,2,[{file,"src/couch_os_process.erl"},{line,59}]},{couch_query_servers,proc_prompt,2,[{file,"src/couch_query_servers.erl"},{line,536}]},{dreyfus_index_updater,update_or_delete_index,4,[{file,"src/dreyfus_index_updater.erl"},{line,141}]},{dreyfus_index_updater,load_docs,2,[{file,"src/dreyfus_index_updater.erl"},{line,80}]},{couch_bt_engine,drop_reductions,4,[{file,"src/couch_bt_engine.erl"},{line,1177}]},{couch_btree,stream_kv_node2,8,[{file,"src/couch_btree.erl"},{line,851}]},{couch_btree,stream_kp_node,7,[{file,"src/couch_btree.erl"},{line,778}]},{couch_btree,fold,4,[{file,"src/couch_btree.erl"},{line,224}]}]}

Contributor guide

Open the contributing guide

Research direction

Reproduce the Clouseau search-index failure across CouchDB 3.2.0, 3.2.1, and 3.2.2, then inspect src/couch_os_process.erl at line 59 and the dreyfus_index_updater calls at lines 80 and 141 in the reported stack trace. Done means the regression is understood and search-index creation or updating returns results on the affected versions, with regression coverage where the repository supports it.

Written by the indexing model from the issue text.

Assessment

Tech stack
erlang
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.