[
https://issues.apache.org/jira/browse/COUCHDB-3415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16009647#comment-16009647
]
Jan Lehnardt commented on COUCHDB-3415:
---------------------------------------
I filed a PR that helps with debugging:
https://github.com/apache/couchdb/pull/517
My assumption is that the test reader process needs to long to read everything
so that the live/continuous code sends a newline to keep the HTTP connection
open and that maybe chokes the ?JSON_DECODE, but I want to make sure that there
isn’t anything else in there.
> EUnit: should_accept_live_as_an_alias_for_continuous invalid_trailing_data
> --------------------------------------------------------------------------
>
> Key: COUCHDB-3415
> URL: https://issues.apache.org/jira/browse/COUCHDB-3415
> Project: CouchDB
> Issue Type: Bug
> Components: Test Suite
> Reporter: Joan Touzet
>
> New bug. Seen once in Travis, Erlang 17.5. Re-running caused the error to
> disappear.
> {noformat}
> module 'chttpd_db_test'
> chttpd db tests
> chttpd_db_test:71: should_return_ok_true_on_bulk_update...[0.073 s] ok
> chttpd_db_test:86:
> should_accept_live_as_an_alias_for_continuous...*failed*
> in function couch_util:json_decode/1 (src/couch_util.erl, line 414)
> in call from
> chttpd_db_test:'-should_accept_live_as_an_alias_for_continuous/1-fun-1-'/1
> (test/chttpd_db_test.erl, line 98)
> **throw:{invalid_json,{error,{257,invalid_trailing_data}}}
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)