I upgraded my Couchbase server cluster (3 nodes) from 3.0 to 4.0.
But this broke some of the scripts that were working fine in 3.0.
The scripts primarily use the REST APIs that I copied from web console’s View.
In one case:
http://host:8092/cs_work_monitor/_design/dev_classify/_view/unclassified?stale=false&inclusive_end=true&connection_timeout=60000&limit=10&skip=0
works fine. But when I select “Full Cluster Data Set”, i.e. adding “full_set=true”, it broke with this error:
ejson_compare_nif_not_loaded ([{erlang,nif_error,[ejson_compare_nif_not_loaded],[]}, {couch_ejson_compare,less_json_nif,2, [{file,"/Users/jenkins/jenkins/workspace/sherlock-unix/couchdb/src/couchdb/couch_ejson_compare.erl"}, {line,62}]}, {couch_ejson_compare,less_json,2, [{file,"/Users/jenkins/jenkins/workspace/sherlock-unix/couchdb/src/couchdb/couch_ejson_compare.erl"}, {line,49}]}, {couch_set_view,map_view_key_compare,2, [{file,"/Users/jenkins/jenkins/workspace/sherlock-unix/couchdb/src/couch_set_view/src/couch_set_view.erl"}, {line,1116}]}, {couch_skew,merge,3, [{file,"/Users/jenkins/jenkins/workspace/sherlock-unix/couchdb/src/couch_index_merger/src/couch_skew.erl"}, {line,45}]}, {couch_skew,out,2, [{file,"/Users/jenkins/jenkins/workspace/sherlock-unix/couchdb/src/couch_index_merger/src/couch_skew.erl"}, {line,35}]}, {couch_view_merger_queue,handle_cast,2, [{file,"/Users/jenkins/jenkins/workspace/sherlock-unix/couchdb/src/couch_index_merger/src/couch_view_merger_queue.erl"}, {line,155}]}, {gen_server,handle_msg,5,[{file,“gen_server.erl”},{line,604}]}])
I am not sure how to read what’s wrong.
Another case is the “group_level=2” no longer works and return error “unexpected” in dev view and “ejson_compare_nif_not_loaded” in “full cluster data” view.
Is there compatibility issue with upgrading 3.0 to 4.0 data I missed? The upgrade process seems to work fine.
Thanks!
Alex Lee