You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Brian L. Troutwine (JIRA)" <ji...@apache.org> on 2008/09/01 21:40:44 UTC

[jira] Created: (COUCHDB-110) Compaction Fails with Error

Compaction Fails with Error
---------------------------

                 Key: COUCHDB-110
                 URL: https://issues.apache.org/jira/browse/COUCHDB-110
             Project: CouchDB
          Issue Type: Bug
          Components: Database Core
    Affects Versions: 0.8.1
         Environment: Debian Stable with Erlang 5.6.3
            Reporter: Brian L. Troutwine


Recently my CouchDB has started acting a little funny. When I issue a compaction command like so:

$ curl -X POST http://localhost:5984/valinor/_compact

I receive the following in my logs:

Apache CouchDB 0.8.1-incubating (LogLevel=info)
Apache CouchDB is starting.

Apache CouchDB has started. Time to relax.
[info] [<0.60.0>] Starting compaction for db "valinor"
[info] [<0.56.0>] 127.0.0.1 - - "POST /valinor/_compact" 202
[error] [emulator] Error in process <0.62.0> with exit value: {function_clause,[{couch_db,'-copy_docs/3-fun-0-',[not_found,<0.58.0>,{stream,<0.64.0>,<0.63.0>},<0.63.0>]},{lists,map,2},{lists,map,2},{couch_db,copy_docs,3},{couch_db,copy_compact_docs,2},{couch_db,start_copy_compact_int,2}]}



=ERROR REPORT==== 1-Sep-2008::12:33:17 ===
Error in process <0.62.0> with exit value: {function_clause,[{couch_db,'-copy_docs/3-fun-0-',[not_found,<0.58.0>,{stream,<0.64.0>,<0.63.0>},<0.63.0>]},{lists,map,2},{lists,map,2},{couch_db,copy_docs,3},{couch_db,copy_compact_docs,2},{couch_db,start_copy_compact_int,2}]}

[error] [<0.47.0>] {error_report,<0.22.0>,
    {<0.47.0>,supervisor_report,
     [{supervisor,{local,couch_server_sup}},
      {errorContext,child_terminated},
      {reason,
          {function_clause,
              [{couch_db,'-copy_docs/3-fun-0-',
                   [not_found,<0.58.0>,{stream,<0.64.0>,<0.63.0>},<0.63.0>]},
               {lists,map,2},
               {lists,map,2},
               {couch_db,copy_docs,3},
               {couch_db,copy_compact_docs,2},
               {couch_db,start_copy_compact_int,2}]}},
      {offender,
          [{pid,<0.59.0>},
           {name,"valinor"},
           {mfa,
               {couch_db,open,
                   ["valinor","/usr/local/var/lib/couchdb/valinor.couch"]}},
           {restart_type,transient},
           {shutdown,infinity},
           {child_type,supervisor}]}]}}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Resolved: (COUCHDB-110) Compaction Fails with Error

Posted by Brian Troutwine <go...@gmail.com>.
Hello,

The OS is Linux 2.6, Debian Stable with Erlang 5.6.3 (Debian package
1:12.b.3-dfsg-4, compiled from Sid-sources). The machine is 64-bit
with 512 MB of RAM.  The database itself was created with 0.8.1 and
there were no recent power failures or crashes. The database is being
used to store time-series data, about 250,000 documents.

The only reproducible aspect of this bug that I can find, after a bit
of tinkering, is compaction reliably fails on databases above 2.5 Gigs
in size.

On Tue, Sep 2, 2008 at 10:15 AM, Damien Katz (JIRA) <ji...@apache.org> wrote:
>
>     [ https://issues.apache.org/jira/browse/COUCHDB-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Damien Katz resolved COUCHDB-110.
> ---------------------------------
>
>    Resolution: Cannot Reproduce
>
> Looks we don't have a reproducible scenario.
>
> It would be nice if we could get more information for tracking purposes:
> What OS? Was this database created with a previous version of CouchDB? Were there any recent power failures or OS crashes? How was the database being used?
>
>> Compaction Fails with Error
>> ---------------------------
>>
>>                 Key: COUCHDB-110
>>                 URL: https://issues.apache.org/jira/browse/COUCHDB-110
>>             Project: CouchDB
>>          Issue Type: Bug
>>          Components: Database Core
>>    Affects Versions: 0.8.1
>>         Environment: Debian Stable with Erlang 5.6.3
>>            Reporter: Brian L. Troutwine
>>
>> Recently my CouchDB has started acting a little funny. When I issue a compaction command like so:
>> $ curl -X POST http://localhost:5984/valinor/_compact
>> I receive the following in my logs:
>> Apache CouchDB 0.8.1-incubating (LogLevel=info)
>> Apache CouchDB is starting.
>> Apache CouchDB has started. Time to relax.
>> [info] [<0.60.0>] Starting compaction for db "valinor"
>> [info] [<0.56.0>] 127.0.0.1 - - "POST /valinor/_compact" 202
>> [error] [emulator] Error in process <0.62.0> with exit value: {function_clause,[{couch_db,'-copy_docs/3-fun-0-',[not_found,<0.58.0>,{stream,<0.64.0>,<0.63.0>},<0.63.0>]},{lists,map,2},{lists,map,2},{couch_db,copy_docs,3},{couch_db,copy_compact_docs,2},{couch_db,start_copy_compact_int,2}]}
>> =ERROR REPORT==== 1-Sep-2008::12:33:17 ===
>> Error in process <0.62.0> with exit value: {function_clause,[{couch_db,'-copy_docs/3-fun-0-',[not_found,<0.58.0>,{stream,<0.64.0>,<0.63.0>},<0.63.0>]},{lists,map,2},{lists,map,2},{couch_db,copy_docs,3},{couch_db,copy_compact_docs,2},{couch_db,start_copy_compact_int,2}]}
>> [error] [<0.47.0>] {error_report,<0.22.0>,
>>     {<0.47.0>,supervisor_report,
>>      [{supervisor,{local,couch_server_sup}},
>>       {errorContext,child_terminated},
>>       {reason,
>>           {function_clause,
>>               [{couch_db,'-copy_docs/3-fun-0-',
>>                    [not_found,<0.58.0>,{stream,<0.64.0>,<0.63.0>},<0.63.0>]},
>>                {lists,map,2},
>>                {lists,map,2},
>>                {couch_db,copy_docs,3},
>>                {couch_db,copy_compact_docs,2},
>>                {couch_db,start_copy_compact_int,2}]}},
>>       {offender,
>>           [{pid,<0.59.0>},
>>            {name,"valinor"},
>>            {mfa,
>>                {couch_db,open,
>>                    ["valinor","/usr/local/var/lib/couchdb/valinor.couch"]}},
>>            {restart_type,transient},
>>            {shutdown,infinity},
>>            {child_type,supervisor}]}]}}
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>



-- 
Brian

[jira] Resolved: (COUCHDB-110) Compaction Fails with Error

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

Damien Katz resolved COUCHDB-110.
---------------------------------

    Resolution: Cannot Reproduce

Looks we don't have a reproducible scenario.

It would be nice if we could get more information for tracking purposes:
What OS? Was this database created with a previous version of CouchDB? Were there any recent power failures or OS crashes? How was the database being used?

> Compaction Fails with Error
> ---------------------------
>
>                 Key: COUCHDB-110
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-110
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 0.8.1
>         Environment: Debian Stable with Erlang 5.6.3
>            Reporter: Brian L. Troutwine
>
> Recently my CouchDB has started acting a little funny. When I issue a compaction command like so:
> $ curl -X POST http://localhost:5984/valinor/_compact
> I receive the following in my logs:
> Apache CouchDB 0.8.1-incubating (LogLevel=info)
> Apache CouchDB is starting.
> Apache CouchDB has started. Time to relax.
> [info] [<0.60.0>] Starting compaction for db "valinor"
> [info] [<0.56.0>] 127.0.0.1 - - "POST /valinor/_compact" 202
> [error] [emulator] Error in process <0.62.0> with exit value: {function_clause,[{couch_db,'-copy_docs/3-fun-0-',[not_found,<0.58.0>,{stream,<0.64.0>,<0.63.0>},<0.63.0>]},{lists,map,2},{lists,map,2},{couch_db,copy_docs,3},{couch_db,copy_compact_docs,2},{couch_db,start_copy_compact_int,2}]}
> =ERROR REPORT==== 1-Sep-2008::12:33:17 ===
> Error in process <0.62.0> with exit value: {function_clause,[{couch_db,'-copy_docs/3-fun-0-',[not_found,<0.58.0>,{stream,<0.64.0>,<0.63.0>},<0.63.0>]},{lists,map,2},{lists,map,2},{couch_db,copy_docs,3},{couch_db,copy_compact_docs,2},{couch_db,start_copy_compact_int,2}]}
> [error] [<0.47.0>] {error_report,<0.22.0>,
>     {<0.47.0>,supervisor_report,
>      [{supervisor,{local,couch_server_sup}},
>       {errorContext,child_terminated},
>       {reason,
>           {function_clause,
>               [{couch_db,'-copy_docs/3-fun-0-',
>                    [not_found,<0.58.0>,{stream,<0.64.0>,<0.63.0>},<0.63.0>]},
>                {lists,map,2},
>                {lists,map,2},
>                {couch_db,copy_docs,3},
>                {couch_db,copy_compact_docs,2},
>                {couch_db,start_copy_compact_int,2}]}},
>       {offender,
>           [{pid,<0.59.0>},
>            {name,"valinor"},
>            {mfa,
>                {couch_db,open,
>                    ["valinor","/usr/local/var/lib/couchdb/valinor.couch"]}},
>            {restart_type,transient},
>            {shutdown,infinity},
>            {child_type,supervisor}]}]}}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.