You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/01/30 03:34:03 UTC

[GitHub] ToanP opened a new issue #1133: CouchDb 2.1.1 can NOT create a View document

ToanP opened a new issue #1133: CouchDb 2.1.1 can NOT create a View document
URL: https://github.com/apache/couchdb/issues/1133
 
 
   <!--- Provide a general summary of the issue in the Title above -->
    The latest  COuchDB 2.1.1 for MACOS can not create a simple view. 
   
   ## Expected Behavior
   <!--- If you're describing a bug, tell us what should happen -->
   View Document worked well on CouchDB 2.1.0 but CouchDB 2.1.1. 
   Here is log:
   
   couchdb@localhost <0.882.0> -------- OS Process Error <0.25075.1> :: {os_process_error,{exit_status,134}}
   
   <!--- If you're suggesting a change/improvement, tell us how it should work -->
   
   ## Current Behavior
   <!--- If describing a bug, tell us what happens instead of the expected behavior -->
   <!--- If suggesting a change/improvement, explain the difference from current behavior -->
   
   ## Possible Solution
   <!--- Not obligatory, but suggest a fix/reason for the bug, -->
   <!--- or ideas how to implement the addition or change -->
   
   ## Steps to Reproduce (for bugs)
   <!--- Provide a link to a live example, or an unambiguous set of steps to -->
   <!--- reproduce this bug. Include code to reproduce, if relevant -->
   1. Create a Fruit dabase
   2. Add some documents
   {
       "_id" : "bc2a41170621c326ec68382f846d5764",
        "item" : "apple",
       "prices" : {
           "Fresh Mart" : 1.59,
           "Price Max" : 5.99,
           "Apples Express" : 0.79
       }
   }
   {
       "_id" : "bc2a41170621c326ec68382f846d5764",
        "item" : "orange",
       "prices" : {
           "Fresh Mart" : 1.99,
           "Price Max" : 3.19,
           "Citrus Circus" : 1.09
       }
   }
   {
       "_id" : "bc2a41170621c326ec68382f846d5764",
        "item" : "banana",
       "prices" : {
           "Fresh Mart" : 1.99,
           "Price Max" : 0.79,
           "Banana Montana" : 4.22
       }
   }
   3. Create a View from design document
   function (doc) {
      var store, price, value;
       if (doc.item && doc.prices) {
           for (store in doc.prices) {
               price = doc.prices[store];
               value = [doc.item, store];
               emit(price, value);
           }
       }
   }
   
   4. Save Document and Build index
   
   ## Context
   <!--- How has this issue affected you? What are you trying to accomplish? -->
   <!--- Providing context helps us come up with a solution that is most useful in the real world -->
   
   ## Your Environment
   <!--- Include as many relevant details about the environment you experienced the bug in -->
   * Version used: CouchDB 2.1.1
   * Browser Name and version: Chrome
   * Operating System and version (desktop or mobile): MACOS High Sierra
   * Link to your project: NA
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services