You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Brad King <br...@gmail.com> on 2008/07/10 15:22:24 UTC

Compaction failing

OK I admit it, I made a mistake. I was doing updates to documents as
fast as possible (from a single thread) and initiated a compaction
from Futon. I soon got an error on my updates, and the compaction
failed. I restarted couchdb, but now I still can't get a compaction to
run:

[Thu, 10 Jul 2008 00:21:55 GMT] [info] [<0.63.0>] 172.20.3.48 - -
"POST /inventorytest/_compact" 202

[Thu, 10 Jul 2008 00:21:56 GMT] [error] [emulator] Error in process
<0.71.0> with exit value:
{function_clause,[{couch_db,'-copy_docs/3-fun-0-',[not_found,<0.65

.0>,{stream,<0.73.0>,<0.72.0>},<0.72.0>]},{lists,map,2},{lists,map,2},{couch_db,

copy_docs,3},{couch_db,'-copy_compact_docs/2-fun-0-',4},{couch_btree,stream_kv_n
                           ode2,7},{couch_btree,stream_kp_node...



[Thu, 10 Jul 2008 00:21:56 GMT] [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.65.0>,{stream,<0.73.0>,<0.72.0>},<0.72.0>]},
               {lists,map,2},
               {lists,map,2},
               {couch_db,copy_docs,3},
               {couch_db,'-copy_compact_docs/2-fun-0-',4},
               {couch_btree,stream_kv_node2,7},
               {couch_btree,stream_kp_node,6},
               {couch_btree,fold,5}]}},
      {offender,
          [{pid,<0.66.0>},
           {name,"inventorytest"},
           {mfa,
               {couch_db,open,
                   ["inventorytest",
                    "/usr/local/var/lib/couchdb/inventorytest.couch"]}},
           {restart_type,transient},
           {shutdown,infinity},
           {child_type,supervisor}]}]}}

Is there any way to fix this without deleting the database? Everything
looks normal in Futon with the data, I just can't get compaction to
run.

Re: Compaction failing

Posted by Damien Katz <da...@apache.org>.
Weird. Outside of a file corruption, can't see how that could happen.

Can you supply Erlang, CouchDB and OS version details and can you zip  
up the file and send it to me?

-Damien


On Jul 10, 2008, at 9:22 AM, Brad King wrote:

> OK I admit it, I made a mistake. I was doing updates to documents as
> fast as possible (from a single thread) and initiated a compaction
> from Futon. I soon got an error on my updates, and the compaction
> failed. I restarted couchdb, but now I still can't get a compaction to
> run:
>
> [Thu, 10 Jul 2008 00:21:55 GMT] [info] [<0.63.0>] 172.20.3.48 - -
> "POST /inventorytest/_compact" 202
>
> [Thu, 10 Jul 2008 00:21:56 GMT] [error] [emulator] Error in process
> <0.71.0> with exit value:
> {function_clause,[{couch_db,'-copy_docs/3-fun-0-',[not_found,<0.65
>
> .0>,{stream,<0.73.0>,<0.72.0>},<0.72.0>]},{lists,map,2},{lists,map, 
> 2},{couch_db,
>
> copy_docs,3},{couch_db,'-copy_compact_docs/2-fun-0-',4}, 
> {couch_btree,stream_kv_n
>                           ode2,7},{couch_btree,stream_kp_node...
>
>
>
> [Thu, 10 Jul 2008 00:21:56 GMT] [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.65.0>, 
> {stream,<0.73.0>,<0.72.0>},<0.72.0>]},
>               {lists,map,2},
>               {lists,map,2},
>               {couch_db,copy_docs,3},
>               {couch_db,'-copy_compact_docs/2-fun-0-',4},
>               {couch_btree,stream_kv_node2,7},
>               {couch_btree,stream_kp_node,6},
>               {couch_btree,fold,5}]}},
>      {offender,
>          [{pid,<0.66.0>},
>           {name,"inventorytest"},
>           {mfa,
>               {couch_db,open,
>                   ["inventorytest",
>                    "/usr/local/var/lib/couchdb/ 
> inventorytest.couch"]}},
>           {restart_type,transient},
>           {shutdown,infinity},
>           {child_type,supervisor}]}]}}
>
> Is there any way to fix this without deleting the database? Everything
> looks normal in Futon with the data, I just can't get compaction to
> run.