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

creating and querying one spatial index on mac returns error,system_limit because mac file descriptor limit is not reset to 10k

    Details

      Description

      I am on Mac OS X - Mountain Lion. So I hadn't really played with spatial yet, so I went to docs and put in the reduce and it's causing my Couchbase Server 2.0 Beta to crash. The docs I followed: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views-writing-geo-views.html

      I attached a Diag Report as well... Chris says it might be because of Erlang + open file limits.

      My Document (there are only 3 docs in bucket)

      { "type": "test", "timestamp": "2012-09-28 23:37:14 -0700", "dog": "Pug", "loc": [ 2, 3 ] }

      Map (Spatial)

      function(doc, meta) {
      if (doc.loc) {
      emit(

      { type: "Point", coordinates: [doc.loc[0], doc.loc[1]], }

      ,
      [meta.id, doc.loc]);
      }
      };

      Dev SetResult (only shown when I go directly to link in new tab)
      URL: http://127.0.0.1:8092/default/_design/dev_spatial/_spatial/points?bbox=-180%2C-90%2C180%2C90&connection_timeout=60000

      {
      error: "case_clause",
      reason: "{error,{exit,{aborted,{no_exists,['stats_archiver-default-minute']}}}}"
      }

      In Published View I get this:
      URL: http://127.0.0.1:8092/default/_design/spatial/_spatial/points?bbox=-180%2C-90%2C180%2C90&stale=update_after&connection_timeout=60000

      {
      total_rows: 0,
      rows: [ ],
      errors: [
      {
      from: "local",
      reason: "

      {error,system_limit}"
      },
      {
      from: "local",
      reason: "{error,system_limit}

      "
      },
      {
      from: "local",
      reason: "

      {error,system_limit}"
      },
      {
      from: "local",
      reason: "{error,system_limit}

      "
      },
      [... repeated 1000's of times ...]
      {
      from: "local",
      reason: "

      {error,system_limit}

      "
      }
      ]
      }

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

        Activity

        Hide
        steve Steve Yen added a comment - - edited

        per bug-scrub mtg. Farshid will followup with John Z on whether he saw a problem with a single ddoc/spatial-index.

        Show
        steve Steve Yen added a comment - - edited per bug-scrub mtg. Farshid will followup with John Z on whether he saw a problem with a single ddoc/spatial-index.
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        John we opened http://www.couchbase.com/issues/browse/MB-7109 for tracking the issue you are seeing

        Show
        farshid Farshid Ghods (Inactive) added a comment - John we opened http://www.couchbase.com/issues/browse/MB-7109 for tracking the issue you are seeing
        Hide
        jchrisa J Chris Anderson [X] (Inactive) added a comment -

        Once I saw a line of code in the Erlang VM file handler, having to do with handling on Mac, that essentially hardcodes it at 1024. So unless we wanna fix that in the Erlang VM we made the right choice here by lowering vbucket count on Mac.

        Show
        jchrisa J Chris Anderson [X] (Inactive) added a comment - Once I saw a line of code in the Erlang VM file handler, having to do with handling on Mac, that essentially hardcodes it at 1024. So unless we wanna fix that in the Erlang VM we made the right choice here by lowering vbucket count on Mac.
        Hide
        FilipeManana Filipe Manana (Inactive) added a comment -

        Yes, that's a well known issue that was debated several times in erlang-questions list:

        http://erlang.2086793.n4.nabble.com/clipping-of-max-of-file-descriptors-by-erts-when-kernel-poll-is-enabled-td2108706.html

        Doesn't seem it will be addressed at any time soon.

        Show
        FilipeManana Filipe Manana (Inactive) added a comment - Yes, that's a well known issue that was debated several times in erlang-questions list: http://erlang.2086793.n4.nabble.com/clipping-of-max-of-file-descriptors-by-erts-when-kernel-poll-is-enabled-td2108706.html Doesn't seem it will be addressed at any time soon.
        Hide
        kzeller kzeller added a comment -

        Added to RN: For Mac OSX, we limit the number of vBuckets to 64 from 1024
        due to limitations on Mac OSX file descriptors. In the past, this
        resulted in crashes for OSX.

        Show
        kzeller kzeller added a comment - Added to RN: For Mac OSX, we limit the number of vBuckets to 64 from 1024 due to limitations on Mac OSX file descriptors. In the past, this resulted in crashes for OSX.

          People

          • Assignee:
            iryna iryna
            Reporter:
            farshid Farshid Ghods (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes