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 2019/07/03 13:14:27 UTC

[GitHub] [couchdb] sarveshtamba commented on issue #2053: `make check` failures on ppc64le (`erl_child_setup: failed with error 32 on line 253`)

sarveshtamba commented on issue #2053: `make check` failures on ppc64le (`erl_child_setup: failed with error 32 on line 253`)
URL: https://github.com/apache/couchdb/issues/2053#issuecomment-508087636
 
 
   > @sarveshtamba from error, i can see that database can't be created due to timeout. Most likely, it is related to connection. You may have a try to start couchdb instance, and use `curl` to create database, and see whether there is similar issue. And then debugging the difference from the case in elixir.
   
   Hi @jiangphcn I tried to manually create databases as per `http://docs.couchdb.org/en/stable/setup/single-node.html`
   However the databases are already created(by the test cases in the test suites I suppose).
   ```
   root@pts00452-vm13:~# curl -X PUT root:eUMWzuP4@127.0.0.1:15984/_users
   {"error":"file_exists","reason":"The database could not be created, the file already exists."}
   root@pts00452-vm13:~# curl -X PUT root:eUMWzuP4@127.0.0.1:15984/_replicator
   {"error":"file_exists","reason":"The database could not be created, the file already exists."}
   root@pts00452-vm13:~# curl -X PUT root:eUMWzuP4@127.0.0.1:15984/_global_changes
   {"error":"file_exists","reason":"The database could not be created, the file already exists."}
   ```
   However new sample test DB could be created:-
   ```
   root@pts00452-vm13:~# curl -X PUT root:SfwUbHfo@127.0.0.1:15984/testcouchdb
   {"ok":true}
   ```
   I also tried to increase the timeout in `test/elixir/lib/couch/db_test.ex`, that did not help as well.
   ```
     def retry_until(condition, sleep \\ 100, timeout \\ 5000) do
       retry_until(condition, now(:ms), sleep, timeout)
     end
   ```
   
   Also the tests fail inconsistently, since in one of the runs only 2 failures were seen as below:-
   ```
     1) test replication by doc ids - remote-to-remote (ReplicationTest)
        test/replication_test.exs:228
        ** (KeyError) key :status_code not found in: %HTTPotion.ErrorResponse{message: "req_timedout"}
        code: run_by_id_repl(@src_prefix, @tgt_prefix)
        stacktrace:
          (foo) lib/couch/db_test.ex:166: anonymous fn/2 in Couch.DBTest.create_db/2
          (foo) lib/couch/db_test.ex:304: Couch.DBTest.retry_until/4
          test/replication_test.exs:994: anonymous fn/2 in ReplicationTest.run_by_id_repl_impl/3
          (foo) lib/couch/db_test.ex:304: Couch.DBTest.retry_until/4
          test/replication_test.exs:993: ReplicationTest.run_by_id_repl_impl/3
          (elixir) lib/enum.ex:769: Enum."-each/2-lists^foreach/1-0-"/2
          (elixir) lib/enum.ex:769: Enum.each/2
          test/replication_test.exs:229: (test)
     2) test compaction reduces size of deleted docs (CompactTest)
        test/compact_test.exs:17
        ** (RuntimeError) timed out after 5046 ms
        code: retry_until(fn ->
        stacktrace:
          (foo) lib/couch/db_test.ex:301: Couch.DBTest.retry_until/4
          test/compact_test.exs:38: (test)
   
   Finished in 2232.4 seconds
   298 tests, 2 failures, 23 excluded
   ```

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