You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "paul iannazzo (Created) (JIRA)" <ji...@apache.org> on 2011/12/30 19:02:30 UTC

[jira] [Created] (COUCHDB-1372) "_stats" reduce producing errors on empty views

"_stats" reduce producing errors on empty views
-----------------------------------------------

                 Key: COUCHDB-1372
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1372
             Project: CouchDB
          Issue Type: Bug
          Components: JavaScript View Server
    Affects Versions: 1.1.1
         Environment: windows, most likely effects all systems
            Reporter: paul iannazzo


have a database with any number of documents in it. create a map that outputs 0 things (no emits called). use reduce : "_stats". an error should occur.
it's very common to have views be an empty set since maps act as filters in couchdb.

when i use my own reduce functions i don't get errors, only with the standard couchdb functions.

this wouldn't be a problem if i could use commonJS in my reduces.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (COUCHDB-1372) "_stats" reduce producing errors on empty views

Posted by "paul iannazzo (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13177800#comment-13177800 ] 

paul iannazzo commented on COUCHDB-1372:
----------------------------------------

this causes my couchapps to crash.
                
> "_stats" reduce producing errors on empty views
> -----------------------------------------------
>
>                 Key: COUCHDB-1372
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1372
>             Project: CouchDB
>          Issue Type: Bug
>          Components: JavaScript View Server
>    Affects Versions: 1.1.1
>         Environment: windows, most likely effects all systems
>            Reporter: paul iannazzo
>            Assignee: Robert Newson
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> have a database with any number of documents in it. create a map that outputs 0 things (no emits called). use reduce : "_stats". an error should occur.
> it's very common to have views be an empty set since maps act as filters in couchdb.
> when i use my own reduce functions i don't get errors, only with the standard couchdb functions.
> this wouldn't be a problem if i could use commonJS in my reduces.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (COUCHDB-1372) "_stats" reduce producing errors on empty views

Posted by "Robert Newson (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Newson resolved COUCHDB-1372.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.2
                   1.3
                   1.2

Added a clause for empty list for builtin_stats which fixes the function_clause.
                
> "_stats" reduce producing errors on empty views
> -----------------------------------------------
>
>                 Key: COUCHDB-1372
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1372
>             Project: CouchDB
>          Issue Type: Bug
>          Components: JavaScript View Server
>    Affects Versions: 1.1.1
>         Environment: windows, most likely effects all systems
>            Reporter: paul iannazzo
>            Assignee: Robert Newson
>             Fix For: 1.2, 1.3, 1.1.2
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> have a database with any number of documents in it. create a map that outputs 0 things (no emits called). use reduce : "_stats". an error should occur.
> it's very common to have views be an empty set since maps act as filters in couchdb.
> when i use my own reduce functions i don't get errors, only with the standard couchdb functions.
> this wouldn't be a problem if i could use commonJS in my reduces.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (COUCHDB-1372) "_stats" reduce producing errors on empty views

Posted by "Robert Newson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13177718#comment-13177718 ] 

Robert Newson commented on COUCHDB-1372:
----------------------------------------

I'm unable to reproduce this, could you include the error you received?
                
> "_stats" reduce producing errors on empty views
> -----------------------------------------------
>
>                 Key: COUCHDB-1372
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1372
>             Project: CouchDB
>          Issue Type: Bug
>          Components: JavaScript View Server
>    Affects Versions: 1.1.1
>         Environment: windows, most likely effects all systems
>            Reporter: paul iannazzo
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> have a database with any number of documents in it. create a map that outputs 0 things (no emits called). use reduce : "_stats". an error should occur.
> it's very common to have views be an empty set since maps act as filters in couchdb.
> when i use my own reduce functions i don't get errors, only with the standard couchdb functions.
> this wouldn't be a problem if i could use commonJS in my reduces.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (COUCHDB-1372) "_stats" reduce producing errors on empty views

Posted by "Robert Newson (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Newson reassigned COUCHDB-1372:
--------------------------------------

    Assignee: Robert Newson
    
> "_stats" reduce producing errors on empty views
> -----------------------------------------------
>
>                 Key: COUCHDB-1372
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1372
>             Project: CouchDB
>          Issue Type: Bug
>          Components: JavaScript View Server
>    Affects Versions: 1.1.1
>         Environment: windows, most likely effects all systems
>            Reporter: paul iannazzo
>            Assignee: Robert Newson
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> have a database with any number of documents in it. create a map that outputs 0 things (no emits called). use reduce : "_stats". an error should occur.
> it's very common to have views be an empty set since maps act as filters in couchdb.
> when i use my own reduce functions i don't get errors, only with the standard couchdb functions.
> this wouldn't be a problem if i could use commonJS in my reduces.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (COUCHDB-1372) "_stats" reduce producing errors on empty views

Posted by "Robert Newson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13177721#comment-13177721 ] 

Robert Newson commented on COUCHDB-1372:
----------------------------------------

nvm, I see it now. The view still returns results ('{"rows":[]}') but there's a function_clause in the log, doesn't appear fatal, but it is untidy.
                
> "_stats" reduce producing errors on empty views
> -----------------------------------------------
>
>                 Key: COUCHDB-1372
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1372
>             Project: CouchDB
>          Issue Type: Bug
>          Components: JavaScript View Server
>    Affects Versions: 1.1.1
>         Environment: windows, most likely effects all systems
>            Reporter: paul iannazzo
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> have a database with any number of documents in it. create a map that outputs 0 things (no emits called). use reduce : "_stats". an error should occur.
> it's very common to have views be an empty set since maps act as filters in couchdb.
> when i use my own reduce functions i don't get errors, only with the standard couchdb functions.
> this wouldn't be a problem if i could use commonJS in my reduces.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira