[GitHub] [couchdb] jjrodrig opened a new pull request, #4726: Unlock build using Elixir 1.15
jjrodrig opened a new pull request, #4726: URL: https://github.com/apache/couchdb/pull/4726 ## Overview Elixir 1.5 introduces some changes in the compilation process tha affects to the execution of our test suite. The problem has been reported here #4706 It seems that we are facing one of the incompatibility problems documented in the Elixir 1.15 release notes > Potential incompatibilities Due to the code path pruning, if you have an application or dependency that does not specify its dependencies on Erlang and Elixir application, it may no longer compile successfully in Elixir v1.15. You can temporarily disable code path pruning by setting prune_code_paths: false in your mix.exs, although doing so may lead to runtime bugs that are only manifested inside a [mix release](https://hexdocs.pm/mix/1.15/Mix.Tasks.Release.html). Previous to this PR, if we try to run the elixir test suite with Elixir 1.15, the following error appears in any test that uses `jiffy`. ``` > make clean couch elixir 1) test Basic reduce functions (ReduceTest) test/elixir/test/reduce_test.exs:16 ** (UndefinedFunctionError) function :jiffy.decode/2 is undefined (module :jiffy is not available) stacktrace: (jiffy 1.0.9) :jiffy.decode("{\"ok\":true}\n", [:return_maps]) ``` This PR indroduces the suggested temporary fix in the `mix.exs` by adding `prune_code_paths: false` to the build config. With this change we can use Elixir 1.15 in our build process. I've tried to find the problem with our dependency declaration without sucess. This should be a temporary solution until we find the root of the problem. This PR introduces a second change in the Makefile clean target by adding aditional cleanup for elixir build artifacts. ## Testing recommendations - Install Erlang >= 24 - Install Elixir 1.15 - `make clean couch elixir` The elixir test suite should run without problems. Then check the cleanup. - `make clean` - `find . -name "_build"` (No _build folder should be found) - `MIX_ENV=integration mix deps` (should inform that every dependency needs to be compiled/updated) ## Related Issues or Pull Requests This PR proposes a temporary solution for #4706 ## Checklist - [X] Code is written and works correctly - [ ] Changes are covered by tests - [ ] Any new configurable parameters are documented in `rel/overlay/etc/default.ini` - [ ] Documentation changes were made in the `src/docs` folder - [ ] Documentation changes were backported (separated PR) to affected branches -- 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. To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [couchdb] KangTheTerrible commented on issue #4725: Long running erlang map/reduce can block view compaction from completion, leaking erlang procs
KangTheTerrible commented on issue #4725: URL: https://github.com/apache/couchdb/issues/4725#issuecomment-1675144766 Additional piece of useful info, it seems that while the index is running for the first time I got this from the erlang views metadata ``` _design/erlangstatsstats Metadata Index Information Language:Erlang Currently being updated?Yes Currently running compaction?Yes Waiting for a commit?Yes Clients waiting for the index:719422 Update sequence on DB:257926611 Processed purge sequence:0 Actual data size (bytes):602,563,809,246 Data size on disk (bytes):1,187,591,035,418 MD5 Signature: -- 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. To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org