svn commit: r1171340 - in /couchdb/trunk: src/couchdb/couch_work_queue.erl test/etap/042-work-queue.t test/etap/Makefile.am

2011-09-15 Thread fdmanana
Author: fdmanana Date: Fri Sep 16 00:20:05 2011 New Revision: 1171340 URL: http://svn.apache.org/viewvc?rev=1171340view=rev Log: Add test test/etap/042-work-queue.t So far the couch_work_queue module had no unit tests at all. This module is important for the view updater and the replicator

svn commit: r1171341 - in /couchdb/branches/1.2.x: src/couchdb/couch_work_queue.erl test/etap/042-work-queue.t test/etap/Makefile.am

2011-09-15 Thread fdmanana
Author: fdmanana Date: Fri Sep 16 00:21:44 2011 New Revision: 1171341 URL: http://svn.apache.org/viewvc?rev=1171341view=rev Log: Add test test/etap/042-work-queue.t So far the couch_work_queue module had no unit tests at all. This module is important for the view updater and the replicator

svn commit: r1171342 - /couchdb/trunk/src/couchdb/couch_work_queue.erl

2011-09-15 Thread fdmanana
Author: fdmanana Date: Fri Sep 16 00:23:54 2011 New Revision: 1171342 URL: http://svn.apache.org/viewvc?rev=1171342view=rev Log: Remove comment This comment was added, unintentially, in revision 1103266 Modified: couchdb/trunk/src/couchdb/couch_work_queue.erl Modified: couchdb/trunk/src

svn commit: r1169983 - /couchdb/trunk/src/couchdb/couch_replicator.erl

2011-09-12 Thread fdmanana
Author: fdmanana Date: Tue Sep 13 00:27:16 2011 New Revision: 1169983 URL: http://svn.apache.org/viewvc?rev=1169983view=rev Log: Notify waiting requests when replication cancelled When cancelling a non-continuous replication, notify that the replication was cancelled. This is necessary

svn commit: r1169498 - in /couchdb/trunk: src/couchdb/couch_httpc_pool.erl test/etap/230-httpc-pool.t test/etap/Makefile.am

2011-09-11 Thread fdmanana
Author: fdmanana Date: Sun Sep 11 18:51:45 2011 New Revision: 1169498 URL: http://svn.apache.org/viewvc?rev=1169498view=rev Log: Make sure httpc pool doesn't reuse dead connections Race conditions allowed dead http connections to be added back to the httpc pool and then be given back to clients

svn commit: r1169503 - /couchdb/trunk/src/couchdb/couch_httpd_show.erl

2011-09-11 Thread fdmanana
Author: fdmanana Date: Sun Sep 11 19:20:12 2011 New Revision: 1169503 URL: http://svn.apache.org/viewvc?rev=1169503view=rev Log: Fix comment Patch by Jason Smith. Thanks. Modified: couchdb/trunk/src/couchdb/couch_httpd_show.erl Modified: couchdb/trunk/src/couchdb/couch_httpd_show.erl URL

svn commit: r1167626 - /couchdb/trunk/configure.ac

2011-09-10 Thread fdmanana
Author: fdmanana Date: Sat Sep 10 22:45:53 2011 New Revision: 1167626 URL: http://svn.apache.org/viewvc?rev=1167626view=rev Log: Use EJSON compare NIF only if OTP version R14B03 COUCHDB-1267 Modified: couchdb/trunk/configure.ac Modified: couchdb/trunk/configure.ac URL: http

svn commit: r1165433 - in /couchdb/trunk: src/couchdb/couch_compaction_daemon.erl src/couchdb/couch_db.erl test/etap/220-compaction-daemon.t

2011-09-05 Thread fdmanana
Author: fdmanana Date: Mon Sep 5 21:57:45 2011 New Revision: 1165433 URL: http://svn.apache.org/viewvc?rev=1165433view=rev Log: Close database if database compaction is not done Issue found, and patch, by Mike Leddy. Patch extended with a test. Thanks Mike. Modified: couchdb/trunk/src

svn commit: r1165145 - /couchdb/trunk/src/couchdb/couch_api_wrap.erl

2011-09-04 Thread fdmanana
Author: fdmanana Date: Mon Sep 5 01:57:00 2011 New Revision: 1165145 URL: http://svn.apache.org/viewvc?rev=1165145view=rev Log: Remove no longer existing replicator httpc option Modified: couchdb/trunk/src/couchdb/couch_api_wrap.erl Modified: couchdb/trunk/src/couchdb/couch_api_wrap.erl

svn commit: r1163747 - /couchdb/branches/1.1.x/src/couchdb/couch_rep.erl

2011-08-31 Thread fdmanana
Author: fdmanana Date: Wed Aug 31 19:09:05 2011 New Revision: 1163747 URL: http://svn.apache.org/viewvc?rev=1163747view=rev Log: Fix order of parameters in log message Modified: couchdb/branches/1.1.x/src/couchdb/couch_rep.erl Modified: couchdb/branches/1.1.x/src/couchdb/couch_rep.erl URL

svn commit: r1163748 - /couchdb/trunk/src/couchdb/couch_replicator_utils.erl

2011-08-31 Thread fdmanana
Author: fdmanana Date: Wed Aug 31 19:10:26 2011 New Revision: 1163748 URL: http://svn.apache.org/viewvc?rev=1163748view=rev Log: Fix order of parameters in log message Modified: couchdb/trunk/src/couchdb/couch_replicator_utils.erl Modified: couchdb/trunk/src/couchdb

svn commit: r1162662 - /couchdb/trunk/src/couchdb/couch_replicator_worker.erl

2011-08-29 Thread fdmanana
Author: fdmanana Date: Mon Aug 29 07:24:28 2011 New Revision: 1162662 URL: http://svn.apache.org/viewvc?rev=1162662view=rev Log: Remove unncessary/duplicated replicator cast Modified: couchdb/trunk/src/couchdb/couch_replicator_worker.erl Modified: couchdb/trunk/src/couchdb

svn commit: r1162663 - in /couchdb/trunk/src/couchdb: couch_replicator.erl couch_replicator_worker.erl

2011-08-29 Thread fdmanana
Author: fdmanana Date: Mon Aug 29 07:25:15 2011 New Revision: 1162663 URL: http://svn.apache.org/viewvc?rev=1162663view=rev Log: Make replicator report_seq_done call synchronous On environments with an incredibly slow network, this was making the main gen_server's mailbox very big when

svn commit: r1162664 - /couchdb/trunk/src/couchdb/couch_replicator.erl

2011-08-29 Thread fdmanana
Author: fdmanana Date: Mon Aug 29 07:26:04 2011 New Revision: 1162664 URL: http://svn.apache.org/viewvc?rev=1162664view=rev Log: Remove unnecessary replicator gen_server clauses Modified: couchdb/trunk/src/couchdb/couch_replicator.erl Modified: couchdb/trunk/src/couchdb/couch_replicator.erl

svn commit: r1163005 - /couchdb/trunk/src/couchdb/couch_replicator.erl

2011-08-29 Thread fdmanana
Author: fdmanana Date: Mon Aug 29 21:08:36 2011 New Revision: 1163005 URL: http://svn.apache.org/viewvc?rev=1163005view=rev Log: Add byte size limit to work queue Modified: couchdb/trunk/src/couchdb/couch_replicator.erl Modified: couchdb/trunk/src/couchdb/couch_replicator.erl URL: http

svn commit: r1162306 - in /couchdb/branches/1.1.x/src/couchdb: couch_rep_reader.erl couch_rep_writer.erl

2011-08-27 Thread fdmanana
Author: fdmanana Date: Sat Aug 27 07:30:35 2011 New Revision: 1162306 URL: http://svn.apache.org/viewvc?rev=1162306view=rev Log: Fix replication crash on database compaction There were race conditions that made replications crash when a local endpoint database is compacted. Patch tested by Joan

svn commit: r1162307 - /couchdb/branches/1.1.x/src/couchdb/couch_rep_reader.erl

2011-08-27 Thread fdmanana
Author: fdmanana Date: Sat Aug 27 07:40:54 2011 New Revision: 1162307 URL: http://svn.apache.org/viewvc?rev=1162307view=rev Log: Remove unnecessary call after revision 1162306 Modified: couchdb/branches/1.1.x/src/couchdb/couch_rep_reader.erl Modified: couchdb/branches/1.1.x/src/couchdb

svn commit: r1160965 - /couchdb/trunk/src/couchdb/couch_compaction_daemon.erl

2011-08-23 Thread fdmanana
Author: fdmanana Date: Wed Aug 24 02:41:31 2011 New Revision: 1160965 URL: http://svn.apache.org/viewvc?rev=1160965view=rev Log: Don't open database or view group if not needed If we're not in the allowed time window for a compaction, don't open the database or a view group because

svn commit: r1160966 - /couchdb/trunk/src/couchdb/couch_compaction_daemon.erl

2011-08-23 Thread fdmanana
Author: fdmanana Date: Wed Aug 24 02:42:58 2011 New Revision: 1160966 URL: http://svn.apache.org/viewvc?rev=1160966view=rev Log: Add after clause to receive expression When doing parallel view compaction, make sure the respective process terminates when it exceeds the allowed period window

svn commit: r1159922 - in /couchdb/trunk: bin/ etc/couchdb/ src/couchdb/ test/etap/

2011-08-20 Thread fdmanana
Author: fdmanana Date: Sat Aug 20 23:00:24 2011 New Revision: 1159922 URL: http://svn.apache.org/viewvc?rev=1159922view=rev Log: Add configurable automatic compaction A set of rules can now be defined in order to automatically trigger the compaction of databases and their views

svn commit: r1159058 - /couchdb/trunk/test/etap/210-os-proc-pool.t

2011-08-18 Thread fdmanana
Author: fdmanana Date: Thu Aug 18 06:40:07 2011 New Revision: 1159058 URL: http://svn.apache.org/viewvc?rev=1159058view=rev Log: Add missing assertions to test/etap/210-os-proc-pool.t Modified: couchdb/trunk/test/etap/210-os-proc-pool.t Modified: couchdb/trunk/test/etap/210-os-proc-pool.t

svn commit: r1159059 - /couchdb/branches/1.1.x/test/etap/210-os-proc-pool.t

2011-08-18 Thread fdmanana
Author: fdmanana Date: Thu Aug 18 06:40:39 2011 New Revision: 1159059 URL: http://svn.apache.org/viewvc?rev=1159059view=rev Log: Add missing assertions to test/etap/210-os-proc-pool.t Modified: couchdb/branches/1.1.x/test/etap/210-os-proc-pool.t Modified: couchdb/branches/1.1.x/test/etap

svn commit: r1159501 - /couchdb/branches/1.1.x/src/couchdb/couch_rep_changes_feed.erl

2011-08-18 Thread fdmanana
Author: fdmanana Date: Fri Aug 19 04:51:20 2011 New Revision: 1159501 URL: http://svn.apache.org/viewvc?rev=1159501view=rev Log: Updated changes feed connect timeout to 30 seconds This is the timeout used everywhere else. Some users are constantly unable to replicate since under some scenarios

svn commit: r1159045 - in /couchdb/trunk: src/couchdb/couch_os_process.erl src/couchdb/couch_query_servers.erl test/etap/210-os-proc-pool.t test/etap/Makefile.am

2011-08-17 Thread fdmanana
Author: fdmanana Date: Thu Aug 18 05:48:10 2011 New Revision: 1159045 URL: http://svn.apache.org/viewvc?rev=1159045view=rev Log: Fix dead lock case in the os process pool Part of this patch was done by Paul Davis. The patch also introduces a test case to validate that the os process pool

svn commit: r1159047 - /couchdb/trunk/test/etap/210-os-proc-pool.t

2011-08-17 Thread fdmanana
Author: fdmanana Date: Thu Aug 18 05:49:15 2011 New Revision: 1159047 URL: http://svn.apache.org/viewvc?rev=1159047view=rev Log: Added executable bit to test/etap/210-os-proc-pool.t Modified: couchdb/trunk/test/etap/210-os-proc-pool.t (props changed) Propchange: couchdb/trunk/test/etap

svn commit: r1159049 - in /couchdb/branches/1.1.x: src/couchdb/couch_os_process.erl src/couchdb/couch_query_servers.erl test/etap/210-os-proc-pool.t test/etap/Makefile.am

2011-08-17 Thread fdmanana
Author: fdmanana Date: Thu Aug 18 05:50:42 2011 New Revision: 1159049 URL: http://svn.apache.org/viewvc?rev=1159049view=rev Log: Merge revision 1159045 from trunk Fix dead lock case in the os process pool Part of this patch was done by Paul Davis. The patch also introduces a test

svn commit: r1159050 - /couchdb/branches/1.1.x/test/etap/210-os-proc-pool.t

2011-08-17 Thread fdmanana
Author: fdmanana Date: Thu Aug 18 05:51:31 2011 New Revision: 1159050 URL: http://svn.apache.org/viewvc?rev=1159050view=rev Log: Added executable bit to test/etap/210-os-proc-pool.t Modified: couchdb/branches/1.1.x/test/etap/210-os-proc-pool.t (props changed) Propchange: couchdb/branches

svn commit: r1157693 - /couchdb/trunk/src/couchdb/priv/icu_driver/couch_icu_driver.c

2011-08-14 Thread fdmanana
Author: fdmanana Date: Mon Aug 15 01:09:44 2011 New Revision: 1157693 URL: http://svn.apache.org/viewvc?rev=1157693view=rev Log: Fix C pointer cast to the right type This was making init:restart() crash the Erlang VM on a Mac OS X Lion 64 bits machine. References: http://www.erlang.org/doc/man

svn commit: r1157428 - in /couchdb/trunk: share/www/script/test/design_docs.js src/couchdb/couch_db.erl

2011-08-13 Thread fdmanana
Author: fdmanana Date: Sat Aug 13 22:08:47 2011 New Revision: 1157428 URL: http://svn.apache.org/viewvc?rev=1157428view=rev Log: Doc validation functions from deleted ddocs must be ignored If a design document is deleted by updating it with a _deleted field set to the boolean value true, its

svn commit: r1157429 - in /couchdb/branches/1.1.x: share/www/script/test/design_docs.js src/couchdb/couch_db.erl

2011-08-13 Thread fdmanana
Author: fdmanana Date: Sat Aug 13 22:10:00 2011 New Revision: 1157429 URL: http://svn.apache.org/viewvc?rev=1157429view=rev Log: Merge revision 1157428 from trunk Doc validation functions from deleted ddocs must be ignored If a design document is deleted by updating it with a _deleted

svn commit: r1157434 - in /couchdb/trunk: src/couchdb/couch_log.erl test/etap/172-os-daemon-errors.t

2011-08-13 Thread fdmanana
Author: fdmanana Date: Sat Aug 13 22:33:52 2011 New Revision: 1157434 URL: http://svn.apache.org/viewvc?rev=1157434view=rev Log: Better logger performance Logging to file now uses OTP's specialized disk_log module. Writes to the log file are no longer done inside the gen_event handler

svn commit: r1157262 - /couchdb/trunk/src/couchdb/couch_external_server.erl

2011-08-12 Thread fdmanana
Author: fdmanana Date: Fri Aug 12 21:36:51 2011 New Revision: 1157262 URL: http://svn.apache.org/viewvc?rev=1157262view=rev Log: Fix function_clause error when using externals This was introduced by revision 1144844. Closes COUCHDB-1241. Modified: couchdb/trunk/src/couchdb

svn commit: r1156324 - /couchdb/trunk/src/couchdb/couch_api_wrap.erl

2011-08-10 Thread fdmanana
Author: fdmanana Date: Wed Aug 10 19:23:44 2011 New Revision: 1156324 URL: http://svn.apache.org/viewvc?rev=1156324view=rev Log: Allow by doc ids pull replications from a 1.0 server CouchDB 1.0 and older releases don't have the builtin _changes feed filter _doc_ids (neither support POSTs against

svn commit: r1156360 - in /couchdb/trunk: share/www/script/test/basics.js src/couchdb/couch_server.erl

2011-08-10 Thread fdmanana
Author: fdmanana Date: Wed Aug 10 20:45:53 2011 New Revision: 1156360 URL: http://svn.apache.org/viewvc?rev=1156360view=rev Log: Prevent data loss on db creation request 1) Create and populate a database 2) Restart the server 3) Send a PUT request to create the database - the server

svn commit: r1156361 - in /couchdb/branches/1.1.x: share/www/script/test/basics.js src/couchdb/couch_server.erl

2011-08-10 Thread fdmanana
Author: fdmanana Date: Wed Aug 10 20:47:27 2011 New Revision: 1156361 URL: http://svn.apache.org/viewvc?rev=1156361view=rev Log: Merged revision 1156360 from trunk Prevent data loss on db creation request 1) Create and populate a database 2) Restart the server 3) Send a PUT

svn commit: r1156362 - in /couchdb/branches/1.0.x: share/www/script/test/basics.js src/couchdb/couch_server.erl

2011-08-10 Thread fdmanana
Author: fdmanana Date: Wed Aug 10 20:48:17 2011 New Revision: 1156362 URL: http://svn.apache.org/viewvc?rev=1156362view=rev Log: Merged revision 1156360 from trunk Prevent data loss on db creation request 1) Create and populate a database 2) Restart the server 3) Send a PUT

svn commit: r1156381 - /couchdb/trunk/src/couchdb/couch_server.erl

2011-08-10 Thread fdmanana
Author: fdmanana Date: Wed Aug 10 21:49:20 2011 New Revision: 1156381 URL: http://svn.apache.org/viewvc?rev=1156381view=rev Log: Revert couch_server changes added in revision 1156360 Leaving the tests however since it doesn't hurt. Modified: couchdb/trunk/src/couchdb/couch_server.erl

svn commit: r1156385 - /couchdb/branches/1.1.x/src/couchdb/couch_server.erl

2011-08-10 Thread fdmanana
Author: fdmanana Date: Wed Aug 10 22:01:33 2011 New Revision: 1156385 URL: http://svn.apache.org/viewvc?rev=1156385view=rev Log: Revert couch_server changes added in revision 1156361 Leaving the tests however since it doesn't hurt. Modified: couchdb/branches/1.1.x/src/couchdb

svn commit: r1153250 - /couchdb/trunk/src/couchdb/couch_httpd_replicator.erl

2011-08-02 Thread fdmanana
Author: fdmanana Date: Tue Aug 2 19:30:25 2011 New Revision: 1153250 URL: http://svn.apache.org/viewvc?rev=1153250view=rev Log: Return HTTP code 202 for continuous replications This was the behaviour of the previous replicator's implementation. Issue identified by Dale Harvey. Modified

svn commit: r1149412 - in /couchdb/trunk: src/couchdb/Makefile.am src/couchdb/couch_replicator.erl src/couchdb/couch_replicator_doc_copier.erl src/couchdb/couch_replicator_rev_finder.erl src/couchdb/c

2011-07-21 Thread fdmanana
Author: fdmanana Date: Fri Jul 22 00:04:30 2011 New Revision: 1149412 URL: http://svn.apache.org/viewvc?rev=1149412view=rev Log: Refactor/simplify replicator For each worker (doc copier) process there used to be a rev finder process. A rev finder dequeues from the _changes rows queue, finds

svn commit: r1144842 - /couchdb/trunk/src/couchdb/couch_replicator.erl

2011-07-10 Thread fdmanana
Author: fdmanana Date: Sun Jul 10 12:07:02 2011 New Revision: 1144842 URL: http://svn.apache.org/viewvc?rev=1144842view=rev Log: Fix replication task status text Revision 1144419 added internal timestamps to source database update sequences. These timestamps are being displayed

svn commit: r1144844 - in /couchdb/trunk/src/couchdb: couch_os_process.erl couch_query_servers.erl couch_view_group.erl couch_view_updater.erl

2011-07-10 Thread fdmanana
Author: fdmanana Date: Sun Jul 10 12:11:15 2011 New Revision: 1144844 URL: http://svn.apache.org/viewvc?rev=1144844view=rev Log: Some view indexer optimizations Changes: - Decoding of the JSON received from the external OS process (couchjs) is now done in the indexer's process which does

svn commit: r1144846 - /couchdb/trunk/src/couchdb/couch_httpd.erl

2011-07-10 Thread fdmanana
Author: fdmanana Date: Sun Jul 10 12:18:53 2011 New Revision: 1144846 URL: http://svn.apache.org/viewvc?rev=1144846view=rev Log: Faster required content-type check string:tokens/2 is more efficient then re:split/3 1 timer:tc(re, split, [application/json, ;, [{return, list}]]). {20,[application

svn commit: r1144848 - /couchdb/trunk/src/couchdb/couch_httpd.erl

2011-07-10 Thread fdmanana
Author: fdmanana Date: Sun Jul 10 12:22:04 2011 New Revision: 1144848 URL: http://svn.apache.org/viewvc?rev=1144848view=rev Log: Cheaper request authentication Parsing the auth handlers on every request is more expensive then it needs to be. Just the regexp split operation by itself is rather

svn commit: r1144203 - in /couchdb/trunk: etc/couchdb/default.ini.tpl.in src/couchdb/couch_api_wrap.hrl src/couchdb/couch_api_wrap_httpc.erl src/couchdb/couch_httpc_pool.erl src/couchdb/couch_replicat

2011-07-08 Thread fdmanana
Author: fdmanana Date: Fri Jul 8 09:15:49 2011 New Revision: 1144203 URL: http://svn.apache.org/viewvc?rev=1144203view=rev Log: Simplify replicator's http connection pool Dropped support for pipelining, making it less tied to ibrowse and much simpler and shorter. In practice the pipelining

svn commit: r1144208 - /couchdb/trunk/src/couchdb/couch_replicator.erl

2011-07-08 Thread fdmanana
Author: fdmanana Date: Fri Jul 8 09:28:20 2011 New Revision: 1144208 URL: http://svn.apache.org/viewvc?rev=1144208view=rev Log: Don't block the replication supervisor for too long When a replication child is started and there's no connectivity with a remote endpoint, each request is retried

svn commit: r1144419 - in /couchdb/trunk/src/couchdb: couch_replicator.erl couch_replicator_doc_copier.erl couch_replicator_rev_finder.erl

2011-07-08 Thread fdmanana
Author: fdmanana Date: Fri Jul 8 18:38:44 2011 New Revision: 1144419 URL: http://svn.apache.org/viewvc?rev=1144419view=rev Log: Make replicator agnostic about the update seq type To determine which row, coming from a _changes feed, came earlier (or later), the replicator compared

svn commit: r1143376 - in /couchdb/branches/1.1.x/src/couchdb: couch_db.hrl couch_log.erl

2011-07-06 Thread fdmanana
Author: fdmanana Date: Wed Jul 6 12:27:15 2011 New Revision: 1143376 URL: http://svn.apache.org/viewvc?rev=1143376view=rev Log: Merge revision 1143375 from trunk Redefine logging macros With these macro definitions we don't evaluate the arguments if the corresponding log level

svn commit: r1142410 - /couchdb/branches/1.1.x/src/couchdb/couch_replication_manager.erl

2011-07-03 Thread fdmanana
Author: fdmanana Date: Sun Jul 3 09:58:54 2011 New Revision: 1142410 URL: http://svn.apache.org/viewvc?rev=1142410view=rev Log: Remove warning about unused variable Modified: couchdb/branches/1.1.x/src/couchdb/couch_replication_manager.erl Modified: couchdb/branches/1.1.x/src/couchdb

svn commit: r1142258 - in /couchdb/branches/1.1.x: etc/couchdb/default.ini.tpl.in src/couchdb/couch_rep.erl src/couchdb/couch_replication_manager.erl

2011-07-02 Thread fdmanana
Author: fdmanana Date: Sat Jul 2 18:44:00 2011 New Revision: 1142258 URL: http://svn.apache.org/viewvc?rev=1142258view=rev Log: Restart replications on error If a replication transitions to the error state, attempt to restart it up to max_replication_retry_count times (.ini configuration

svn commit: r1142259 - /couchdb/trunk/src/couchdb/couch_replication_manager.erl

2011-07-02 Thread fdmanana
Author: fdmanana Date: Sat Jul 2 18:46:56 2011 New Revision: 1142259 URL: http://svn.apache.org/viewvc?rev=1142259view=rev Log: Replication manager, ignore db monitor messages Ignore local database monitor messages. These messages are received in some circunstances because replication processes

svn commit: r1142260 - /couchdb/branches/1.1.x/src/couchdb/couch_replication_manager.erl

2011-07-02 Thread fdmanana
Author: fdmanana Date: Sat Jul 2 18:47:54 2011 New Revision: 1142260 URL: http://svn.apache.org/viewvc?rev=1142260view=rev Log: Merge revision 1142259 from trunk Replication manager, ignore db monitor messages Ignore local database monitor messages. These messages are received

svn commit: r1142262 - /couchdb/trunk/src/couchdb/couch_replication_manager.erl

2011-07-02 Thread fdmanana
Author: fdmanana Date: Sat Jul 2 18:51:24 2011 New Revision: 1142262 URL: http://svn.apache.org/viewvc?rev=1142262view=rev Log: On server startup, restart replications in error If we setup a continuous replication which goes into an error state and restart Couch just before the replication

svn commit: r1142263 - /couchdb/branches/1.1.x/src/couchdb/couch_replication_manager.erl

2011-07-02 Thread fdmanana
Author: fdmanana Date: Sat Jul 2 18:52:14 2011 New Revision: 1142263 URL: http://svn.apache.org/viewvc?rev=1142263view=rev Log: Merged revision 1142262 from trunk On server startup, restart replications in error If we setup a continuous replication which goes into an error state

svn commit: r1142265 - in /couchdb/trunk: share/www/status.html src/couchdb/couch_task_status.erl

2011-07-02 Thread fdmanana
Author: fdmanana Date: Sat Jul 2 18:57:00 2011 New Revision: 1142265 URL: http://svn.apache.org/viewvc?rev=1142265view=rev Log: Add datetime fields to task statuses Now task statuses have the fields started and updated, which are unix timestamps that reflect when a task was started and when

svn commit: r1142268 - in /couchdb/trunk: CHANGES NEWS

2011-07-02 Thread fdmanana
Author: fdmanana Date: Sat Jul 2 19:04:47 2011 New Revision: 1142268 URL: http://svn.apache.org/viewvc?rev=1142268view=rev Log: Updated CHANGES and NEWS to reflect COUCHDB-1201 Modified: couchdb/trunk/CHANGES couchdb/trunk/NEWS Modified: couchdb/trunk/CHANGES URL: http

svn commit: r1139865 - in /couchdb/trunk/src/couchdb: couch_api_wrap_httpc.erl couch_replicator.erl

2011-06-26 Thread fdmanana
Author: fdmanana Date: Sun Jun 26 18:08:36 2011 New Revision: 1139865 URL: http://svn.apache.org/viewvc?rev=1139865view=rev Log: Replicator: less agressive connection requests For each worker process there's a missing revs finder process. Therefore we have to account for it when defining the max

svn commit: r1139893 - in /couchdb/trunk: etc/couchdb/default.ini.tpl.in src/couchdb/couch_replicator_utils.erl

2011-06-26 Thread fdmanana
Author: fdmanana Date: Sun Jun 26 18:12:33 2011 New Revision: 1139893 URL: http://svn.apache.org/viewvc?rev=1139893view=rev Log: Update some replicator defaults Use smaller worker batch size so that overall progress is more steady. Also decrease connection pipeline size because an error in one

svn commit: r1139894 - /couchdb/trunk/src/couchdb/couch_httpd.erl

2011-06-26 Thread fdmanana
Author: fdmanana Date: Sun Jun 26 18:14:28 2011 New Revision: 1139894 URL: http://svn.apache.org/viewvc?rev=1139894view=rev Log: Don't steal data from subsequent requests in the pipeline Modified: couchdb/trunk/src/couchdb/couch_httpd.erl Modified: couchdb/trunk/src/couchdb/couch_httpd.erl

svn commit: r1139897 - /couchdb/branches/1.1.x/src/couchdb/couch_httpd.erl

2011-06-26 Thread fdmanana
Author: fdmanana Date: Sun Jun 26 18:19:03 2011 New Revision: 1139897 URL: http://svn.apache.org/viewvc?rev=1139897view=rev Log: Merged revision 1139894 from trunk Don't steal data from subsequent requests in the pipeline Modified: couchdb/branches/1.1.x/src/couchdb/couch_httpd.erl

svn commit: r1138799 - /couchdb/branches/1.1.x/src/couchdb/couch_ref_counter.erl

2011-06-23 Thread fdmanana
Author: fdmanana Date: Thu Jun 23 09:46:46 2011 New Revision: 1138799 URL: http://svn.apache.org/viewvc?rev=1138799view=rev Log: Merged revision 1104168 from trunk Add infinity timeout to couch_ref_counter calls After compacting a very large database, the updater calls the couch_db

svn commit: r1138964 - /couchdb/trunk/src/couchdb/couch_replicator.erl

2011-06-23 Thread fdmanana
Author: fdmanana Date: Thu Jun 23 16:12:56 2011 New Revision: 1138964 URL: http://svn.apache.org/viewvc?rev=1138964view=rev Log: Improve replication logging and status report When resuming a replication, log and report what's the start sequence number (stored in latest checkpoint) Modified

svn commit: r1137928 - in /couchdb/trunk: share/www/script/test/replicator_db.js src/couchdb/couch_replication_manager.erl src/couchdb/couch_replicator_utils.erl

2011-06-21 Thread fdmanana
Author: fdmanana Date: Tue Jun 21 10:13:33 2011 New Revision: 1137928 URL: http://svn.apache.org/viewvc?rev=1137928view=rev Log: Fix server crash associated with the replicator database If there's an exception when calculating the replication ID for a replication document, it crashes

svn commit: r1136988 - in /couchdb/trunk: configure.ac src/snappy/Makefile.am src/snappy/google-snappy/snappy.cc src/snappy/snappy.app.in

2011-06-17 Thread fdmanana
Author: fdmanana Date: Fri Jun 17 19:15:55 2011 New Revision: 1136988 URL: http://svn.apache.org/viewvc?rev=1136988view=rev Log: Upgrade snappy to version 1.0.3 This new version slightly improves decompression speed. Release notes at: http://code.google.com/p/snappy/source/browse/trunk/NEWS

svn commit: r1136370 - /couchdb/trunk/src/couchdb/couch_server.erl

2011-06-16 Thread fdmanana
Author: fdmanana Date: Thu Jun 16 10:53:42 2011 New Revision: 1136370 URL: http://svn.apache.org/viewvc?rev=1136370view=rev Log: Fix terminate function in couch_server couch_server was not doing a synchronous shutdown of all the open databases when terminating (due to an error or server restart

svn commit: r1136041 - in /couchdb/trunk: THANKS src/couchdb/couch_btree.erl

2011-06-15 Thread fdmanana
Author: fdmanana Date: Wed Jun 15 13:46:47 2011 New Revision: 1136041 URL: http://svn.apache.org/viewvc?rev=1136041view=rev Log: Simpler internal btree function APIs Patch by Andrey Somov. Closes COUCHDB-920. Thanks Andrey. Modified: couchdb/trunk/THANKS couchdb/trunk/src/couchdb

svn commit: r1134941 - /couchdb/branches/1.1.x/src/erlang-oauth/Makefile.am

2011-06-12 Thread fdmanana
Author: fdmanana Date: Sun Jun 12 16:14:33 2011 New Revision: 1134941 URL: http://svn.apache.org/viewvc?rev=1134941view=rev Log: Fix erlang-oauth Makefile.am (wrong file extension) Modified: couchdb/branches/1.1.x/src/erlang-oauth/Makefile.am Modified: couchdb/branches/1.1.x/src/erlang

svn commit: r1134942 - in /couchdb/branches/1.1.x/src/couchdb: couch_doc.erl couch_httpd_db.erl

2011-06-12 Thread fdmanana
Author: fdmanana Date: Sun Jun 12 16:16:29 2011 New Revision: 1134942 URL: http://svn.apache.org/viewvc?rev=1134942view=rev Log: Backport revision 1129897 from trunk Fixes to the doc PUT multipart API Don't hold the connection forever if the document is rejected

svn commit: r1134943 - /couchdb/trunk/src/couchdb/couch_replicator.erl

2011-06-12 Thread fdmanana
Author: fdmanana Date: Sun Jun 12 16:20:11 2011 New Revision: 1134943 URL: http://svn.apache.org/viewvc?rev=1134943view=rev Log: Update comment to mention a supervisor change in R14B03 Modified: couchdb/trunk/src/couchdb/couch_replicator.erl Modified: couchdb/trunk/src/couchdb

svn commit: r1129900 - in /couchdb/trunk/src/couchdb: couch_api_wrap.erl couch_replicator_doc_copier.erl

2011-05-31 Thread fdmanana
Author: fdmanana Date: Tue May 31 20:19:40 2011 New Revision: 1129900 URL: http://svn.apache.org/viewvc?rev=1129900view=rev Log: Skip multipart attachments if doc is rejected by the target If the target rejects the document (via validate_doc_update functions), the connection is hold

svn commit: r1129904 - /couchdb/trunk/src/couchdb/couch_api_wrap.erl

2011-05-31 Thread fdmanana
Author: fdmanana Date: Tue May 31 20:28:11 2011 New Revision: 1129904 URL: http://svn.apache.org/viewvc?rev=1129904view=rev Log: Re-use couch_doc:abort_multi_part_stream/1 in couch_api_wrap This was accidently duplicated in revision 1129900. Modified: couchdb/trunk/src/couchdb

svn commit: r1129906 - in /couchdb/trunk: share/www/script/test/replication.js src/couchdb/couch_api_wrap.erl src/couchdb/couch_replicator_doc_copier.erl

2011-05-31 Thread fdmanana
Author: fdmanana Date: Tue May 31 20:32:56 2011 New Revision: 1129906 URL: http://svn.apache.org/viewvc?rev=1129906view=rev Log: Improve error logging on replication write failures If an error happens when writing a document to the target endpoint, log it's ID, revision, error and error reason

svn commit: r1127632 - in /couchdb/trunk: share/www/script/test/replicator_db.js src/couchdb/couch_js_functions.hrl src/couchdb/couch_replication_manager.erl

2011-05-25 Thread fdmanana
Author: fdmanana Date: Wed May 25 18:59:23 2011 New Revision: 1127632 URL: http://svn.apache.org/viewvc?rev=1127632view=rev Log: Force non admins to supply a user_ctx in replication documents This is to prevent users deleting replication documents added by other users and to make it clear who

svn commit: r1127634 - in /couchdb/branches/1.1.x: share/www/script/test/replicator_db.js src/couchdb/couch_js_functions.hrl src/couchdb/couch_rep.erl src/couchdb/couch_replication_manager.erl

2011-05-25 Thread fdmanana
Author: fdmanana Date: Wed May 25 19:01:03 2011 New Revision: 1127634 URL: http://svn.apache.org/viewvc?rev=1127634view=rev Log: Backported revision 1127632 from trunk Force non admins to supply a user_ctx in replication documents This is to prevent users deleting replication documents

svn commit: r1126426 - in /couchdb/trunk/src/couchdb: couch_doc.erl couch_httpd_db.erl

2011-05-23 Thread fdmanana
Author: fdmanana Date: Mon May 23 10:53:37 2011 New Revision: 1126426 URL: http://svn.apache.org/viewvc?rev=1126426view=rev Log: Fix timing issues in the doc PUT multipart/related API Two issues were present: 1) the handler replied to the request before the multipart parser consumed all

svn commit: r1126428 - in /couchdb/branches/1.1.x/src/couchdb: couch_doc.erl couch_httpd_db.erl

2011-05-23 Thread fdmanana
Author: fdmanana Date: Mon May 23 10:56:08 2011 New Revision: 1126428 URL: http://svn.apache.org/viewvc?rev=1126428view=rev Log: Merged revision 1126426 from trunk Fix timing issues in the doc PUT multipart/related API Two issues were present: 1) the handler replied to the request

svn commit: r1126431 - in /couchdb/branches/1.0.x/src/couchdb: couch_doc.erl couch_httpd_db.erl

2011-05-23 Thread fdmanana
Author: fdmanana Date: Mon May 23 11:05:26 2011 New Revision: 1126431 URL: http://svn.apache.org/viewvc?rev=1126431view=rev Log: Merged revision 1126426 from trunk Fix timing issues in the doc PUT multipart/related API Two issues were present: 1) the handler replied to the request

svn commit: r1126457 - /couchdb/trunk/src/couchdb/couch_replicator_doc_copier.erl

2011-05-23 Thread fdmanana
Author: fdmanana Date: Mon May 23 11:56:01 2011 New Revision: 1126457 URL: http://svn.apache.org/viewvc?rev=1126457view=rev Log: Replicator: re-enable batching of documents with small attachments This was removed in revision 1085178, for local - remote replications, for dealing gracefully

svn commit: r1126147 - /couchdb/trunk/src/couchdb/couch_api_wrap_httpc.erl

2011-05-22 Thread fdmanana
Author: fdmanana Date: Sun May 22 18:06:42 2011 New Revision: 1126147 URL: http://svn.apache.org/viewvc?rev=1126147view=rev Log: Replicator: when streaming don't rely on ibrowse's timeouts For some reason, when under heavy load (many requests and connections in parallel), ibrowse doesn't send

svn commit: r1125680 - in /couchdb/trunk: share/www/script/test/replicator_db.js src/couchdb/couch_replication_manager.erl

2011-05-21 Thread fdmanana
Author: fdmanana Date: Sat May 21 12:28:14 2011 New Revision: 1125680 URL: http://svn.apache.org/viewvc?rev=1125680view=rev Log: Use RFC3339 timestamps in replication documents As recently proposed by Max Odgen, RFC3339 timestamps are now used instead of Unix timestamps. Modified: couchdb

svn commit: r1125682 - in /couchdb/branches/1.1.x: share/www/script/test/replicator_db.js src/couchdb/couch_rep.erl

2011-05-21 Thread fdmanana
Author: fdmanana Date: Sat May 21 12:29:38 2011 New Revision: 1125682 URL: http://svn.apache.org/viewvc?rev=1125682view=rev Log: Merged revision 1125680 from trunk Use RFC3339 timestamps in replication documents As recently proposed by Max Odgen, RFC3339 timestamps are now used

svn commit: r1125828 - in /couchdb/trunk: share/www/script/test/attachments_multipart.js src/couchdb/couch_httpd_db.erl

2011-05-21 Thread fdmanana
Author: fdmanana Date: Sat May 21 22:00:26 2011 New Revision: 1125828 URL: http://svn.apache.org/viewvc?rev=1125828view=rev Log: Add missing option to multipart/related GETs This is necessary as the client needs to be able to know if attachments are encoded or not. Modified: couchdb/trunk

svn commit: r1125829 - in /couchdb/branches/1.0.x: share/www/script/test/attachments_multipart.js src/couchdb/couch_httpd_db.erl

2011-05-21 Thread fdmanana
Author: fdmanana Date: Sat May 21 22:01:13 2011 New Revision: 1125829 URL: http://svn.apache.org/viewvc?rev=1125829view=rev Log: Merged revision 1125828 from trunk Add missing option to multipart/related GETs This is necessary as the client needs to be able to know

svn commit: r1125830 - in /couchdb/branches/1.1.x: share/www/script/test/attachments_multipart.js src/couchdb/couch_httpd_db.erl

2011-05-21 Thread fdmanana
Author: fdmanana Date: Sat May 21 22:01:38 2011 New Revision: 1125830 URL: http://svn.apache.org/viewvc?rev=1125830view=rev Log: Merged revision 1125828 from trunk Add missing option to multipart/related GETs This is necessary as the client needs to be able to know if attachments

svn commit: r1125282 - in /couchdb/trunk: etc/couchdb/default.ini.tpl.in src/couchdb/couch_replication_manager.erl

2011-05-20 Thread fdmanana
Author: fdmanana Date: Fri May 20 08:52:39 2011 New Revision: 1125282 URL: http://svn.apache.org/viewvc?rev=1125282view=rev Log: Replication manager: allow max_replication_retry_count to be set to infinity Modified: couchdb/trunk/etc/couchdb/default.ini.tpl.in couchdb/trunk/src/couchdb

svn commit: r1125317 - /couchdb/trunk/src/couchdb/couch_replication_manager.erl

2011-05-20 Thread fdmanana
Author: fdmanana Date: Fri May 20 10:52:45 2011 New Revision: 1125317 URL: http://svn.apache.org/viewvc?rev=1125317view=rev Log: Replication manager: don't update doc if new state == current state This is to avoid unncessary updates. Modified: couchdb/trunk/src/couchdb

svn commit: r1125319 - in /couchdb/trunk: share/www/script/test/replicator_db.js src/couchdb/couch_js_functions.hrl

2011-05-20 Thread fdmanana
Author: fdmanana Date: Fri May 20 10:55:06 2011 New Revision: 1125319 URL: http://svn.apache.org/viewvc?rev=1125319view=rev Log: Replication manager: allow edition of replication documents Replication documents that are not in the triggered state can now be edited by users. This is to make

svn commit: r1125320 - /couchdb/branches/1.1.x/src/couchdb/couch_rep.erl

2011-05-20 Thread fdmanana
Author: fdmanana Date: Fri May 20 10:56:30 2011 New Revision: 1125320 URL: http://svn.apache.org/viewvc?rev=1125320view=rev Log: Replication manager: don't update doc if new state == current state This is to avoid unncessary updates. This is a backport of revision 1125317 (trunk). Modified

svn commit: r1125321 - in /couchdb/branches/1.1.x: share/www/script/test/replicator_db.js src/couchdb/couch_js_functions.hrl

2011-05-20 Thread fdmanana
Author: fdmanana Date: Fri May 20 10:57:28 2011 New Revision: 1125321 URL: http://svn.apache.org/viewvc?rev=1125321view=rev Log: Replication manager: allow edition of replication documents Replication documents that are not in the triggered state can now be edited by users. This is to make

svn commit: r1124184 - /couchdb/branches/1.0.x/share/www/script/test/replication.js

2011-05-18 Thread fdmanana
Author: fdmanana Date: Wed May 18 10:51:22 2011 New Revision: 1124184 URL: http://svn.apache.org/viewvc?rev=1124184view=rev Log: Avoid assertion failure in replication.js due to timing issues Modified: couchdb/branches/1.0.x/share/www/script/test/replication.js Modified: couchdb/branches

svn commit: r1124185 - /couchdb/branches/1.1.x/share/www/script/test/replication.js

2011-05-18 Thread fdmanana
Author: fdmanana Date: Wed May 18 10:54:39 2011 New Revision: 1124185 URL: http://svn.apache.org/viewvc?rev=1124185view=rev Log: Avoid assertion failure in replication.js due to timing issues Modified: couchdb/branches/1.1.x/share/www/script/test/replication.js Modified: couchdb/branches

svn commit: r1104168 - /couchdb/trunk/src/couchdb/couch_ref_counter.erl

2011-05-17 Thread fdmanana
Author: fdmanana Date: Tue May 17 11:41:12 2011 New Revision: 1104168 URL: http://svn.apache.org/viewvc?rev=1104168view=rev Log: Add infinity timeout to couch_ref_counter calls After compacting a very large database, the updater calls the couch_db gen_server with a db record that contains a new

svn commit: r1104476 - in /couchdb/branches/1.0.x: share/www/script/test/replication.js src/couchdb/couch_rep_writer.erl

2011-05-17 Thread fdmanana
Author: fdmanana Date: Tue May 17 19:16:31 2011 New Revision: 1104476 URL: http://svn.apache.org/viewvc?rev=1104476view=rev Log: Fix and test for COUCHDB-885, replication of attachments causing conflicts Modified: couchdb/branches/1.0.x/share/www/script/test/replication.js couchdb

svn commit: r1104478 - /couchdb/branches/1.1.x/share/www/script/test/replication.js

2011-05-17 Thread fdmanana
Author: fdmanana Date: Tue May 17 19:18:57 2011 New Revision: 1104478 URL: http://svn.apache.org/viewvc?rev=1104478view=rev Log: Added extra assertions to the test for COUCHDB-885 This is to verify the attachments really exist in the target and have the right data and metadata. Modified

svn commit: r1104481 - /couchdb/branches/1.1.x/share/www/script/test/replication.js

2011-05-17 Thread fdmanana
Author: fdmanana Date: Tue May 17 19:24:56 2011 New Revision: 1104481 URL: http://svn.apache.org/viewvc?rev=1104481view=rev Log: Add missing doc open option to the test for COUCHDB-885 These were forgotten when backporting the attachment related assertions from 1.0.x. Modified: couchdb

svn commit: r1104490 - /couchdb/trunk/share/www/script/test/replication.js

2011-05-17 Thread fdmanana
Author: fdmanana Date: Tue May 17 19:41:02 2011 New Revision: 1104490 URL: http://svn.apache.org/viewvc?rev=1104490view=rev Log: Backport test for COUCHDB-885 from 1.1.x and 1.0.x Modified: couchdb/trunk/share/www/script/test/replication.js Modified: couchdb/trunk/share/www/script/test

svn commit: r1103266 - /couchdb/trunk/src/couchdb/couch_work_queue.erl

2011-05-14 Thread fdmanana
Author: fdmanana Date: Sun May 15 02:35:25 2011 New Revision: 1103266 URL: http://svn.apache.org/viewvc?rev=1103266view=rev Log: Bug fix in couch_work_queue: state's size not decremented When dequeing some items from the queue (that is, not taking all the queued items) the size field

svn commit: r1102676 - in /couchdb/branches/1.0.x: src/couchdb/couch_view_group.erl test/etap/200-view-group-no-db-leaks.t

2011-05-13 Thread fdmanana
Author: fdmanana Date: Fri May 13 11:17:35 2011 New Revision: 1102676 URL: http://svn.apache.org/viewvc?rev=1102676view=rev Log: Merged revision 1102137 from trunk Make sure view group shutdowns when database is deleted or dies Added more assertions to test 200-view-group-no-db-leaks.t

svn commit: r1102678 - in /couchdb/branches/1.1.x: src/couchdb/couch_view_group.erl test/etap/200-view-group-no-db-leaks.t

2011-05-13 Thread fdmanana
Author: fdmanana Date: Fri May 13 11:18:37 2011 New Revision: 1102678 URL: http://svn.apache.org/viewvc?rev=1102678view=rev Log: Merged revision 1102137 from trunk Make sure view group shutdowns when database is deleted or dies Added more assertions to test 200-view-group-no-db-leaks.t

svn commit: r1102684 - in /couchdb/trunk: etc/couchdb/default.ini.tpl.in src/couchdb/couch_db_updater.erl src/couchdb/couch_view_compactor.erl

2011-05-13 Thread fdmanana
Author: fdmanana Date: Fri May 13 11:44:22 2011 New Revision: 1102684 URL: http://svn.apache.org/viewvc?rev=1102684view=rev Log: Configurable database and view compaction parameters These parameters are now configurable as byte quantities. Larger buffer sizes can significantly decrease final

<    1   2   3   4   5   6   7   >