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 2021/06/05 17:55:19 UTC

[GitHub] [couchdb] nickva edited a comment on issue #3571: Compaction dies constantly after a certain amount of documents

nickva edited a comment on issue #3571:
URL: https://github.com/apache/couchdb/issues/3571#issuecomment-855272434


   @schneuwlym  Erlang 19 would explain why you got an `undef` error there. That `ceil/1` function is not present in Erlang 19. Unfortunately Erlang 19 is not supported any longer for CouchDB 3.x releases.
   
   From the error message it seems as if someone had "patched" the CouchDB release to compile on 19.x and replaced the undefined `ceil/1` function (which would have prevented compiling on < 20.0 releases) with `math:ceil/1`. However, `math:ceil/1` is also not defined in < 20.0 release but we'd only find out about it at runtime.
   
   ```
   4> catch ceil(1.6).    
   {'EXIT',{{shell_undef,ceil,1,[]},
            [{shell,shell_undef,2,[{file,"shell.erl"},{line,1061}]},
   
   5> catch math:ceil(1.6).
   {'EXIT',{undef,[{math,ceil,[1.6],[]},
                   {erl_eval,do_apply,6,[{file,"erl_eval.erl"},{line,674}]},
   ```


-- 
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