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/12/05 13:37:24 UTC

[GitHub] Sutyke opened a new issue #1792: Error running query - Reason: (badmatch) {error, timeout}

Sutyke opened a new issue #1792: Error running query - Reason: (badmatch) {error,timeout}
URL: https://github.com/apache/couchdb/issues/1792
 
 
   <!--- Provide a general summary of the issue in the Title above -->
   Error when running query - Reason: (badmatch) {error,timeout} happened on the first time in the 10gb database with 1.7mil docs. When run next day sorting worked excellent.
   
   Index:
   {
   
    "index": {
       "fields": [
         {
     "createdDate": "desc"
    }
       ]
    },
    "name": "foo-json-index",
    "type": "json"
   }
   
   Mango Query
   {
    "selector": {
       "createdDate": {
          "$gt": null
       }
    },
    "sort": [
       {
          "createdDate": "desc"
       }
    ],
    "limit": 1
   }
   
    
   
   ## Expected Behavior
   <!--- If you're describing a bug, tell us what should happen -->
   <!--- If you're suggesting a change/improvement, tell us how it should work -->
   
   It should not flag error
   
   ## 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 -->
   
   Flag error and don't wait for processing
   
   
   ## Possible Solution
   <!--- Not obligatory, but suggest a fix/reason for the bug, -->
   <!--- or ideas how to implement the addition or change -->
   don't time out query request when query is OK
   
   
   ## 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 database with 2mil documents with size around 10gb
   2. Create index abova
   3. Create Query above
   4. Error (badmatch) {error,timeout}
   
   ## 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: latest 2.2
   * Browser Name and version: Chrome latest
   * Operating System and version (desktop or mobile): Windows
   * 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