[
https://issues.apache.org/jira/browse/COUCHDB-3340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15943967#comment-15943967
]
ASF subversion and git services commented on COUCHDB-3340:
----------------------------------------------------------
Commit 24112cf6ce9ed23029f7697b84548dc8acff28b5 in couchdb-couch-log's branch
refs/heads/master from [~jaydoane]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch-log.git;h=24112cf ]
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)