CouchDB
  1. CouchDB
  2. COUCHDB-1098

Crash when rapidly creating/populating/querying a database

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.0.2
    • Fix Version/s: None
    • Component/s: Database Core
    • Labels:
      None
    • Environment:

      Server: CouchDB v1.0.2 on Erlang R14B on MacOS X 10.6.6 - via the CouchDBX.app bundle v1.0.2.0
      Client: Ruby (CouchRest)

    • Skill Level:
      New Contributors Level (Easy)

      Description

      Hello,

      in our test cases we repeatedly delete, recreate, populate and query the test database views to assert the correctness of the data returned. For each test group.

      We've experiencing two, random, different crashes of the erlang processes, one during indexing (I think) of the test data, and another one caused by a race condition when deleting and recreating the database - when the test group ends. On this gist https://gist.github.com/ffc6960a2b7022826388 there's the relevant part of the couchdb access log file, from the beginning to the end of the test group.

      Please let us know any other information that you need in order to help pinpointing the issue.

      As a side note, it happens on another 1.0.2 installation on Linux/i386 and on couchone.com servers - so it doesn't look like platform specific .

      Thank you in advance for your support.

      ~Marcello

        Activity

        Hide
        Jan Lehnardt added a comment -

        And can you try with non CouchDBX install on Mac OS X? Just in case there's any oddities going on between the UI and CouchDB, I've had spurious reports in the past.

        Show
        Jan Lehnardt added a comment - And can you try with non CouchDBX install on Mac OS X? Just in case there's any oddities going on between the UI and CouchDB, I've had spurious reports in the past.
        Hide
        Robert Newson added a comment -

        Can you clarify what tests fail? A gen_server crash in the log file is not that alarming.

        Do you have a script that shows an incorrect response from couchdb through its HTTP interface?

        Show
        Robert Newson added a comment - Can you clarify what tests fail? A gen_server crash in the log file is not that alarming. Do you have a script that shows an incorrect response from couchdb through its HTTP interface?
        Hide
        Marcello Barnaba added a comment -

        Yeah - sorry I misunderstood the report from my colleague - tests on couchone were really unlikely to fail due to the much higher latency between the client and the server.

        So, this is definitely a race condition when the database is stressed very rapidly. It could sound like a corner case, but it could happen on a busy application as well. Not WRT the DELETE/PUT sequence, but WRT the POST/GET one - think about an HTTP server exposing a REST API, and that's exactly what we're doing on our app.

        Show
        Marcello Barnaba added a comment - Yeah - sorry I misunderstood the report from my colleague - tests on couchone were really unlikely to fail due to the much higher latency between the client and the server. So, this is definitely a race condition when the database is stressed very rapidly. It could sound like a corner case, but it could happen on a busy application as well. Not WRT the DELETE/PUT sequence, but WRT the POST/GET one - think about an HTTP server exposing a REST API, and that's exactly what we're doing on our app.
        Hide
        Amedeo Paglione added a comment -

        Tests executed with a db on couchone.com did not failed so far.

        Show
        Amedeo Paglione added a comment - Tests executed with a db on couchone.com did not failed so far.
        Hide
        Marcello Barnaba added a comment -

        Tests randomly fail.

        Show
        Marcello Barnaba added a comment - Tests randomly fail.
        Hide
        Robert Newson added a comment -

        Besides a messy log file, what impact does this have?

        Show
        Robert Newson added a comment - Besides a messy log file, what impact does this have?

          People

          • Assignee:
            Unassigned
            Reporter:
            Marcello Barnaba
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development