Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Not a Problem
    • Affects Version/s: 0.10
    • Fix Version/s: None
    • Component/s: Test Suite
    • Labels:
      None
    • Skill Level:
      Committers Level (Medium to Hard)

      Description

      Our hosting provider claims they cannot upgrade our CouchDB installation from version 0.9.1 to 0.10 as the test suite for 0.10 is failing.

      This is a translation from their report:


      CouchDB can't handle having its data directory on NFS.

      It seems CouchDB tries to do this:
      1 mkdir test
      2 start process X with fd under test/foo
      3 do the work
      4 rm test/foo
      5 rmdir test
      6 kill process X

      When test/ is on NFS:
      In step 4 an open file is being removed. NFS doesn't really support this
      and the workaround is that the client implementation does
      mv file .nfsXXXXXXX

      However, the 'rmdir test' in step 5 then cannot succeed anymore, since
      the directory is not empty. This eventually causes CouchDB to crash.

      In earlier versions of CouchDB the open/rm/rmdir/kill order may have
      been different, for instance open/rm/kill/rmdir.


      1. error.gz
        20 kB
        Nils Breunese

        Activity

        Hide
        Paul Joseph Davis added a comment -

        Can you get the error traceback? I'm still intrigued as to what possibly changed between 0.9.1 and 0.10.0 that changed. I find it more likely that we just weren't testing something in 0.9.1

        Show
        Paul Joseph Davis added a comment - Can you get the error traceback? I'm still intrigued as to what possibly changed between 0.9.1 and 0.10.0 that changed. I find it more likely that we just weren't testing something in 0.9.1
        Hide
        Nils Breunese added a comment -

        I got this message from the hosting company:


        when doing "Run All" in the test suite, the first test that fails is "compact" the error log is attached.
        from time to time I can see quie a few .nfs files in the couchdb datastore directory:
        find . | grep nfs
        ./.test_suite_db_design/.nfs00000000019000890039f45d
        ./.test_suite_db_design/.nfs00000000019000880039f45e
        ./.test_suite_db_design/.nfs000000000190008b0039f460
        ./.test_suite_db_design/.nfs000000000190008a0039f461
        ./.nfs00000000006800880039f45c
        ./.nfs000000000068008a0039f45f


        I'll attach the error log.

        Show
        Nils Breunese added a comment - I got this message from the hosting company: when doing "Run All" in the test suite, the first test that fails is "compact" the error log is attached. from time to time I can see quie a few .nfs files in the couchdb datastore directory: find . | grep nfs ./.test_suite_db_design/.nfs00000000019000890039f45d ./.test_suite_db_design/.nfs00000000019000880039f45e ./.test_suite_db_design/.nfs000000000190008b0039f460 ./.test_suite_db_design/.nfs000000000190008a0039f461 ./.nfs00000000006800880039f45c ./.nfs000000000068008a0039f45f I'll attach the error log.
        Hide
        Nils Breunese added a comment -

        Compressed error log.

        Show
        Nils Breunese added a comment - Compressed error log.
        Hide
        Matt Chambers added a comment -

        I also need couch to work with NFS.

        Show
        Matt Chambers added a comment - I also need couch to work with NFS.
        Hide
        d added a comment - - edited

        Although this bug was opened for 0.10 and the current version as i write this is 1.2.0, I thought it may be interesting for others that since at least 1.1.1. all tests pass successfully. I have the datafiles on NFS (NetApp toaster), mount options:

        • rw,rsize=32768,wsize=32768,nfsvers=3,hard,tcp,nointr,lock,noatime,timeo=700,retrans=3

        Ubuntu 10.04/12.04 LTS 64bit Server with backported couchdb

        Show
        d added a comment - - edited Although this bug was opened for 0.10 and the current version as i write this is 1.2.0, I thought it may be interesting for others that since at least 1.1.1. all tests pass successfully. I have the datafiles on NFS (NetApp toaster), mount options: rw,rsize=32768,wsize=32768,nfsvers=3,hard,tcp,nointr,lock,noatime,timeo=700,retrans=3 Ubuntu 10.04/12.04 LTS 64bit Server with backported couchdb
        Hide
        Paul Joseph Davis added a comment -

        Cool. Though a quick note that we still don't recommend running over NFS. Users doing such need to be aware of the issues involved.

        Show
        Paul Joseph Davis added a comment - Cool. Though a quick note that we still don't recommend running over NFS. Users doing such need to be aware of the issues involved.

          People

          • Assignee:
            Unassigned
            Reporter:
            Nils Breunese
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development