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

reduce errors do not log to mapreduce_errors.log

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 4.0.0
    • 3.0.1
    • view-engine
    • Security Level: Public
    • CentOS 6.6 running on EC2
    • Untriaged
    • Centos 64-bit
    • Unknown

    Description

      With a new project, I created a map function that had emitted a set of integers with most items being processed, but in a few cases it would emit a value that was not an integer when the data didn't match the format.

      The challenge is that I didn't know this until running over the production data set, and when the reduce failed to process the non-numeric info, it did not log to the mapreduce_errors.log. This made the issue hard to find. @vmx helped me find that the error was going to ns_server.couchdb.log:

      [couchdb:error,2014-12-02T4:51:38.859,ns_1@ec2-54-160-64-77.compute-1.amazonaws.com
      <ns_1@ec2-54-160-64-77.compute-1.amazonaws.com>:<0.21788.38>:couch_log:error:44]Uncaught
      error in HTTP request: {throw,

      {error, <<"Reducer: Error building index for view `s3counts`, reason: Value is not a number (key \"Xception-httpcode\")">>}

      }

      Attachments

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

        Activity

          People

            ritam.sharma Ritam Sharma
            ingenthr Matt Ingenthron
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty