Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
6.6.3
Description
Build : 6.6.3-9804
Steps :
1. 1 node cluster on oel8 or rhel8 with kv+index+query
2. Create a default bucket
3. Create primary index using view : CREATE PRIMARY INDEX ON default USING VIEW
This fails with the following error :
[
{
"code": 13000,
"msg": "Failed to create view #primary - cause: error executing view req at http://127.0.0.1:8092/default/_design/ddl_%23primary/_view/%23primary?end_key=%5B%22thing%22%2C%7B%7D%5D&stale=false&start_key=%5B%22thing%22%5D: 500 Internal Server Error -
\n"
}
]
The following is seen in the ns_couchdb.log
[error_logger:warn,2021-08-10T16:08:14.888-07:00,couchdb_ns_1@cb.local:error_logger<0.32.0>:ale_error_logger_handler:do_log:203]The on_load function for module couch_ejson_compare returned:
|
{error,{load_failed,"Failed to load NIF library /opt/couchbase/lib/couchdb/erlang/lib/couch-1.2.0a-961ad59-git/priv/lib/couch_ejson_compare: '/opt/couchbase/lib/../lib/libjemalloc.so.2: cannot allocate memory in static TLS block'"}}
|
|
[error_logger:warn,2021-08-10T16:08:14.945-07:00,couchdb_ns_1@cb.local:error_logger<0.32.0>:ale_error_logger_handler:do_log:203]The on_load function for module couch_ejson_compare returned:
|
{error,{load_failed,"Failed to load NIF library /opt/couchbase/lib/couchdb/erlang/lib/couch-1.2.0a-961ad59-git/priv/lib/couch_ejson_compare: '/opt/couchbase/lib/../lib/libjemalloc.so.2: cannot allocate memory in static TLS block'"}}
|
|
[error_logger:warn,2021-08-10T16:08:14.998-07:00,couchdb_ns_1@cb.local:error_logger<0.32.0>:ale_error_logger_handler:do_log:203]The on_load function for module couch_ejson_compare returned:
|
{error,{load_failed,"Failed to load NIF library /opt/couchbase/lib/couchdb/erlang/lib/couch-1.2.0a-961ad59-git/priv/lib/couch_ejson_compare: '/opt/couchbase/lib/../lib/libjemalloc.so.2: cannot allocate memory in static TLS block'"}}
|
|
[error_logger:warn,2021-08-10T16:08:15.054-07:00,couchdb_ns_1@cb.local:error_logger<0.32.0>:ale_error_logger_handler:do_log:203]The on_load function for module couch_ejson_compare returned:
|
{error,{load_failed,"Failed to load NIF library /opt/couchbase/lib/couchdb/erlang/lib/couch-1.2.0a-961ad59-git/priv/lib/couch_ejson_compare: '/opt/couchbase/lib/../lib/libjemalloc.so.2: cannot allocate memory in static TLS block'"}}
|
|
[error_logger:warn,2021-08-10T16:08:21.107-07:00,couchdb_ns_1@cb.local:error_logger<0.32.0>:ale_error_logger_handler:do_log:203]The on_load function for module couch_ejson_compare returned:
|
{error,{load_failed,"Failed to load NIF library /opt/couchbase/lib/couchdb/erlang/lib/couch-1.2.0a-961ad59-git/priv/lib/couch_ejson_compare: '/opt/couchbase/lib/../lib/libjemalloc.so.2: cannot allocate memory in static TLS block'"}}
|
|
[error_logger:warn,2021-08-10T16:08:21.163-07:00,couchdb_ns_1@cb.local:error_logger<0.32.0>:ale_error_logger_handler:do_log:203]The on_load function for module couch_ejson_compare returned:
|
{error,{load_failed,"Failed to load NIF library /opt/couchbase/lib/couchdb/erlang/lib/couch-1.2.0a-961ad59-git/priv/lib/couch_ejson_compare: '/opt/couchbase/lib/../lib/libjemalloc.so.2: cannot allocate memory in static TLS block'"}}
|
And the following in couchdb.log
[couchdb:error,2021-08-10T16:08:21.107-07:00,couchdb_ns_1@cb.local:<0.259.0>:couch_log:error:44]Uncaught error in HTTP request: {error,undef}
|
|
Stacktrace: <ud>[{couch_ejson_compare,less,[[<<"thing">>],[<<"thing">>,{[]}]],[]},
|
{couch_view,less_json,2,
|
[{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/couchdb/couch_view.erl"},
|
{line,475}]},
|
{couch_httpd_view,warn_on_empty_key_range,2,
|
[{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/couchdb/couch_httpd_view.erl"},
|
{line,387}]},
|
{couch_httpd_view,parse_view_params,4,
|
[{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/couchdb/couch_httpd_view.erl"},
|
{line,269}]},
|
{couch_view_merger,simple_set_view_query,3,
|
[{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/couch_index_merger/src/couch_view_merger.erl"},
|
{line,1279}]},
|
{capi_indexer,design_doc_view_loop,7,
|
[{file,"src/capi_indexer.erl"},{line,57}]},
|
{request_throttler,do_request,3,
|
[{file,"src/request_throttler.erl"},{line,59}]},
|
{couch_httpd,handle_request,7,
|
[{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/couchdb/couch_httpd.erl"},
|
{line,234}]}]</ud>
|
[couchdb:info,2021-08-10T16:08:21.107-07:00,couchdb_ns_1@cb.local:<0.259.0>:couch_log:info:41]<ud>"127.0.0.1"</ud> -- GET <ud>"/default/_design/ddl_%23primary/_view/%23primary?end_key=%5B%22thing%22%2C%7B%7D%5D&stale=false&start_key=%5B%22thing%22%5D"</ud> 500
|
[couchdb:error,2021-08-10T16:08:21.163-07:00,couchdb_ns_1@cb.local:<0.259.0>:couch_log:error:44]Uncaught error in HTTP request: {error,undef}
|
|
Stacktrace: <ud>[{couch_ejson_compare,less,[[<<"thing">>],[<<"thing">>,{[]}]],[]},
|
{couch_view,less_json,2,
|
[{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/couchdb/couch_view.erl"},
|
{line,475}]},
|
{couch_httpd_view,warn_on_empty_key_range,2,
|
[{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/couchdb/couch_httpd_view.erl"},
|
{line,387}]},
|
{couch_httpd_view,parse_view_params,4,
|
[{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/couchdb/couch_httpd_view.erl"},
|
{line,269}]},
|
{couch_view_merger,simple_set_view_query,3,
|
[{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/couch_index_merger/src/couch_view_merger.erl"},
|
{line,1279}]},
|
{capi_indexer,design_doc_view_loop,7,
|
[{file,"src/capi_indexer.erl"},{line,57}]},
|
{request_throttler,do_request,3,
|
[{file,"src/request_throttler.erl"},{line,59}]},
|
{couch_httpd,handle_request,7,
|
[{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/couchdb/couch_httpd.erl"},
|
{line,234}]}]</ud>
|
This looks similar to MB-46126. These tests fail only on OEL8 and RHEL8 platforms. But they pass on centos7, ubuntu20, windows, suse15, debian10.
Attachments
Issue Links
- mentioned in
-
Page Loading...