You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Robert Newson (JIRA)" <ji...@apache.org> on 2011/05/25 10:59:47 UTC

[jira] [Created] (COUCHDB-1178) function_clause error in make_first_doc_on_disk

function_clause error in make_first_doc_on_disk
-----------------------------------------------

                 Key: COUCHDB-1178
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1178
             Project: CouchDB
          Issue Type: Bug
    Affects Versions: 1.0.2
            Reporter: Robert Newson
            Assignee: Robert Newson
             Fix For: 1.0.3, 1.1, 1.2


make_first_doc_on_disk does not expect to encounter a {Rev, #doc} tuple, but can under some circumstances, this causes a function_clause error.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (COUCHDB-1178) function_clause error in make_first_doc_on_disk

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

Filipe Manana updated COUCHDB-1178:
-----------------------------------

    Attachment: couchdb-1178-prevention.patch

Hi Robert,

I believe the following patch prevents this from happening, however it doesn't attempt to fix existing trees with such values.

Is there a known reproducible case?

> function_clause error in make_first_doc_on_disk
> -----------------------------------------------
>
>                 Key: COUCHDB-1178
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1178
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.0.2
>            Reporter: Robert Newson
>            Assignee: Robert Newson
>            Priority: Blocker
>             Fix For: 1.0.3, 1.1, 1.2
>
>         Attachments: couchdb-1178-prevention.patch
>
>
> make_first_doc_on_disk does not expect to encounter a {Rev, #doc} tuple, but can under some circumstances, this causes a function_clause error.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (COUCHDB-1178) function_clause error in make_first_doc_on_disk

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

Robert Newson updated COUCHDB-1178:
-----------------------------------

    Priority: Blocker  (was: Major)

> function_clause error in make_first_doc_on_disk
> -----------------------------------------------
>
>                 Key: COUCHDB-1178
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1178
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.0.2
>            Reporter: Robert Newson
>            Assignee: Robert Newson
>            Priority: Blocker
>             Fix For: 1.0.3, 1.1, 1.2
>
>
> make_first_doc_on_disk does not expect to encounter a {Rev, #doc} tuple, but can under some circumstances, this causes a function_clause error.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (COUCHDB-1178) function_clause error in make_first_doc_on_disk

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

Robert Newson resolved COUCHDB-1178.
------------------------------------

    Resolution: Fixed

Add the missing clause.

> function_clause error in make_first_doc_on_disk
> -----------------------------------------------
>
>                 Key: COUCHDB-1178
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1178
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.0.2
>            Reporter: Robert Newson
>            Assignee: Robert Newson
>            Priority: Blocker
>             Fix For: 1.0.3, 1.1, 1.2
>
>         Attachments: COUCHDB-1178.patch, blargh.sh, couchdb-1178-prevention.patch
>
>
> make_first_doc_on_disk does not expect to encounter a {Rev, #doc} tuple, but can under some circumstances, this causes a function_clause error.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (COUCHDB-1178) function_clause error in make_first_doc_on_disk

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

Paul Joseph Davis updated COUCHDB-1178:
---------------------------------------

    Attachment: blargh.sh
                COUCHDB-1178.patch

That's a sneaky patch. When I tracked this down last night I ended up just adding a clause to make_first_doc_on_disk to ignore #doc{} records in the tree.

The blargh.sh script can trigger this error.

> function_clause error in make_first_doc_on_disk
> -----------------------------------------------
>
>                 Key: COUCHDB-1178
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1178
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.0.2
>            Reporter: Robert Newson
>            Assignee: Robert Newson
>            Priority: Blocker
>             Fix For: 1.0.3, 1.1, 1.2
>
>         Attachments: COUCHDB-1178.patch, blargh.sh, couchdb-1178-prevention.patch
>
>
> make_first_doc_on_disk does not expect to encounter a {Rev, #doc} tuple, but can under some circumstances, this causes a function_clause error.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira