Skip to content
This repository has been archived by the owner on Jul 22, 2019. It is now read-only.

CouchDB 2.0 - syncing views make CouchDB hanging #308

Open
rdbisme opened this issue Oct 7, 2016 · 4 comments
Open

CouchDB 2.0 - syncing views make CouchDB hanging #308

rdbisme opened this issue Oct 7, 2016 · 4 comments

Comments

@rdbisme
Copy link
Contributor

rdbisme commented Oct 7, 2016

import couchdb
import couchdb.mapping as cmap

c = couchdb.Server()
db = c['test']


class TestDoc(cmap.Document):
    @cmap.ViewField.define('test_view')
    def test_view(doc):
        if doc:
            yield doc['id'], doc

test_doc = TestDoc()
# test_doc.test_view.sync(db)

This on ArchLinux hangs the database. There's a couchdb process consuming all the CPU resources and I need to force the restart of the service. I cannot even test the views with the new Fauxton web view since I cannot find a way to switch the language of the query server as it was possible with Futon :'(

@djc
Copy link
Owner

djc commented Oct 9, 2016

Hey, thanks for filing this issue. Unfortunately I haven't been able to get CouchDB 2 to install yet, since it lacks a generic packaging/installation system. I also haven't used the view server much. All this means that I probably won't have time to solve this issue in the near future.

@rdbisme
Copy link
Contributor Author

rdbisme commented Oct 9, 2016

Ok, thanks in any case. I will investigate about that...

@danballance
Copy link

danballance commented Nov 2, 2016

Just a note about running 2.0 for others. I have been using Docker containers from here:

https://hub.docker.com/_/couchdb

It's working very nicely. Lets me test a 3 node cluster with load balancer with just a few basic commands.

@rdbisme
Copy link
Contributor Author

rdbisme commented Jan 10, 2017

@danballance can you reproduce the bug I'm highlighting?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants