Skip to content

Stuck Threads when creating a continous replication #80

@traugott

Description

@traugott

I have multiple android devices. One device creates an LiteListener listener where the other devices replicates to. The other devices uses continous replication.

In the class com.couchbase.lite.router.Router in line 1787 (version 1.4.0 from maven repo) the Status is set to zero. In this case the Method

com.couchbase.lite.router.Router.start doesnt call sendResponse(), so the callback block doesnt get called.

The callback block is defined in com.couchbase.lite.listener.LiteServlet. The callback block counts down the doneSignal. Only if this doneSignal is counted down, the
thread gets put back in the threadpool.

The Acme threadpool runs out of threads and no replication occurs any more.

MODIFIED: The callback also doesnt get called when the jvm which replicates terminates

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions