You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/03/27 06:59:41 UTC

[jira] [Commented] (COUCHDB-3340) EUnit: syslog timeout

    [ https://issues.apache.org/jira/browse/COUCHDB-3340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15942747#comment-15942747 ] 

ASF GitHub Bot commented on COUCHDB-3340:
-----------------------------------------

GitHub user jaydoane opened a pull request:

    https://github.com/apache/couchdb-couch-log/pull/17

    Fix dns timeout for undefined syslog host

    On some platforms, inet:getaddr can take several seconds to return when
    passed the undefined atom, which is the default value of "syslog_host",
    and therefore the value used when running tests. On platforms where it
    takes longer to return than the test is allowed to run, the
    couch_log_writer_syslog_test will fail with *timed out*.
    
    This short circuits the case when "syslog_host" is undefined, and
    removes the race from the test.
    
    COUCHDB-3340

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cloudant/couchdb-couch-log 3340-fix-dns-timeout

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-couch-log/pull/17.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #17
    
----
commit 24112cf6ce9ed23029f7697b84548dc8acff28b5
Author: Jay Doane <ja...@gmail.com>
Date:   2017-03-27T06:46:15Z

    Fix dns timeout for undefined syslog host
    
    On some platforms, inet:getaddr can take several seconds to return when
    passed the undefined atom, which is the default value of "syslog_host",
    and therefore the value used when running tests. On platforms where it
    takes longer to return than the test is allowed to run, the
    couch_log_writer_syslog_test will fail with *timed out*.
    
    This short circuits the case when "syslog_host" is undefined, and
    removes the race from the test.
    
    COUCHDB-3340

----


> EUnit: syslog timeout
> ---------------------
>
>                 Key: COUCHDB-3340
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3340
>             Project: CouchDB
>          Issue Type: Test
>          Components: Test Suite
>            Reporter: Joan Touzet
>            Assignee: Jay Doane
>
> Happening semi-often (but not consistently) in our Jenkins builds. These are within Docker images, so this failure may be related to syslogd running slowly inside the images.
> {noformat}
> module 'couch_log_writer_syslog_test'
>   couch_log_writer_syslog_test:
>   couch_log_writer_syslog_test_...*timed out*
>   undefined
> {noformat}
> Here's a bit more detail from a recent log:
> {noformat}
> module 'couch_log_writer_syslog_test'
>   couch_log_writer_syslog_test: couch_log_writer_syslog_test_...[0.181 s] ok
>   couch_log_writer_syslog_test: couch_log_writer_syslog_test_...Internal error: {error,undef,
>                     [{io,fwrite,["*timed out*\n",[]],[]},
>                      {eunit_tty,handle_cancel,3,
>                          [{file,"eunit_tty.erl"},{line,171}]},
>                      {eunit_listener,call,3,
>                          [{file,"eunit_listener.erl"},{line,132}]},
>                      {eunit_listener,group_loop,4,
>                          [{file,"eunit_listener.erl"},{line,93}]},
>                      {eunit_listener,'-init_fun/2-fun-0-',2,
>                          [{file,"eunit_listener.erl"},{line,58}]}]}.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)