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 2020/03/28 22:33:15 UTC

[GitHub] [couchdb] jaydoane commented on issue #2729: Don't advertise unimplemented features

jaydoane commented on issue #2729: Don't advertise unimplemented features
URL: https://github.com/apache/couchdb/pull/2729#issuecomment-605528437
 
 
   > Also perhaps instead of commenting those out we just remove the feature set lines. Except for scheduler since we intend to bring it back.
   > 
   > Another crazy idea is to not start couch_server at all. I am guessing this will breaking a whole bunch of things that try to open system databases and such but if you're curious and want to see what happens that will auto-magically disable all these features. If that works we would want to move access-ready to another place then.
   
   I commented out the couch_server child spec in couch_primary_sup.erl, but couch layer failed to start:
   
   ```erlang
   {"init terminating in do_boot",{{error,{{shutdown,{failed_to_start_child,mem3_nodes,{badarg,[{ets,lookup,[couch_dbs_locks,<<"_nodes">>],[]},{couch_server,validate_open_or_create,2,[{file,"src/couch_server.erl"},{line,711}]},{couch_server,open,2,[{file,"src/couch_server.erl"},{line,83}]},{couch_db,open,2,[{file,"src/couch_db.erl"},{line,160}]},{mem3_util,ensure_exists,1,[{file,"src/mem3_util.erl"},{line,270}]},{mem3_nodes,initialize_nodelist,0,[{file,"src/mem3_nodes.erl"},{line,94}]},{mem3_nodes,init,1,[{file,"src/mem3_nodes.erl"},{line,45}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,374}]}]}}},{mem3_app,start,[normal,[]]}}},[{boot_node,start_app,3,[{file,"dev/boot_node.erl"},{line,146}]},{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},{boot_node,start_app,3,[{file,"dev/boot_node.erl"},{line,136}]},{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},{boot_node,start_app,3,[{file,"dev/boot_node.erl"},{line,136}]},{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},{boot_node,start_app,3,[{file,"dev/boot_node.erl"},{line,136}]},{lists,foldl,3,[{file,"lists.erl"},{line,1263}]}]}}
   ```
   
   I think it's going to probably require a bit more work to turn it off, which I presume is out of scope for this commit.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services