Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-37452

View creation fails when running in Docker on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Critical
    • Morpheus
    • 6.0.3
    • view-engine
    • None
    • Untriaged
    • Unknown

    Description

      Discovered by a community user: https://github.com/couchbase/docker/issues/140 (and in fact, was originally discovered back in 2016 by a different community user, although we didn't realize it was unique to docker-on-Windows at the time: https://github.com/couchbase/docker/issues/47 )

      If you run the official Docker image in a Windows environment, AND use "docker run -v" to mount /opt/couchbase/var from the Windows filesystem, view creation will fail with an "ebusy" error. Sriram Melkote debugged this. Apparently there's a situation where an open file needs to be opened by another process. This causes an error on Windows, but there is Windows-specific code in couchdb/file2.erl which implements a retry-loop catching the exception until it is able to succeed. However, in this case, the product being run is the Linux product. It is unaware of this limitation of Windows filesystems, and hence does not execute the workaround and allows the exception to escape.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              abhishek.jindal Abhishek Jindal
              ceej Chris Hillery
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty