summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-06-01Added tests for heartbeat and timeout options in the _changes api.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780539 13f79535-47bb-0310-9956-ffa450edef68
2009-05-31Removed space from whitespace heartbeat in _changes apiDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780531 13f79535-47bb-0310-9956-ffa450edef68
2009-05-31Added timeout and heartbeat options to the _changes apiDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780529 13f79535-47bb-0310-9956-ffa450edef68
2009-05-31Had to swap macro definitions to support R12B.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780350 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30Adding code:add_pathz/1 calls for older Erlang versions.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780348 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30Updating various version control propertiesPaul Joseph Davis
Ignoring coverage and test output. Making test files executable to be run individually. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780338 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30Making the couchspawnkillable script marked as executable.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780328 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30Added code coverage report generation target.Paul Joseph Davis
To generate reports: # Assuming etap is installed $ cd /path/to/couchdb $ ./bootstrap && ERLC_FLAGS=+debug_info ./configure && make cover You can browse the report by opening ./cover/index.html in your html consuming software of choice. Shoutout to Nick Gerakines in THANKS for helping with etap and testing in general. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780326 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30Fix the make check command to run tests in test/etap/Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780318 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30Fix for couch_file bug found with etap test suiteDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780300 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30renamed directoryNoah Slater
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780288 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30Adding Erlang unit tests.Paul Joseph Davis
To run these tests: $ git clone git://github.com/ngerakines/etap.git $ cd etap $ sudo make install $ cd /path/to/couchdb $ ./bootstrap && ./configure && make check So far I've worked through most of couch_file.erl, couch_btree.erl, and couch_doc.erl. Tomorrow I'll be adding coverage reporting so that we can see what code we're actually testing. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780197 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30Revert accidently checked-in test change.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780168 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30Test and fix for infinite loops in view_servers, fix for crashed OS ↵Damien F. Katz
processes causing leaked erlang processes and fix for view server crashing when view group process terminates. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780165 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29make sure process is still alive before calculating memory footprintAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@779846 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29the atom doesn't necessarily existAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@779842 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29misapplied Antony's workaround for extra bytes in r775724Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@779839 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29Removed unfixed tests cases accidently checked in.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@779826 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29Fix and test for COUCHDB-366, uploading large attachments causes 500 error.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@779824 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28refactor load_ini_file so it can be called from another processAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@779394 13f79535-47bb-0310-9956-ffa450edef68
2009-05-27Fixes COUCHDB-363Paul Joseph Davis
Applying the patch provided by Benoit Chesneau for 363 which fixes an error when POST'ing to _external handlers. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@778949 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26ignore _local_seq when included in a saved documentJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@778890 13f79535-47bb-0310-9956-ffa450edef68
2009-05-25Fix for binary chunks being out of order with new tail append codeDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@778521 13f79535-47bb-0310-9956-ffa450edef68
2009-05-25Merging new tail append storage into trunk. Upgrades are automatic, once ↵Damien F. Katz
opened by this version old versions of CouchDB will not be able to open the files. As a precaution, you should back-up your production databases before upgrading. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@778485 13f79535-47bb-0310-9956-ffa450edef68
2009-05-24Added stats tracking for active _changes clients.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@778072 13f79535-47bb-0310-9956-ffa450edef68
2009-05-23remove leftover trace loggingJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@777975 13f79535-47bb-0310-9956-ffa450edef68
2009-05-23added an design doc option so that doc._local_seq can be available in the ↵John Christopher Anderson
map view. Closes COUCHDB-346 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@777757 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20restart update_notification process when config changesAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@776715 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20Move default handler configuration to couch_httpd:start_link/0Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@776685 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19add a basic .gitignore file - enjoy!John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@776182 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19Add a configuration parameter for the default database handler.Paul Joseph Davis
Closes COUCHDB-353 Thanks Brad Anderson git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@776143 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18first crack at binary backoff for failed replicator requestsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@776031 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18View source loads the original file now.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775796 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18remove leftover .compact files on DB deleteAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775785 13f79535-47bb-0310-9956-ffa450edef68
2009-05-17work around ibrowse giving response chunks too many bytes. Thanks Antony.Adam Kocoloski
Initially committed on the 0.9.x branch by accident in 775634. We want to include this in 0.9.1 anyway, though, so shouldn't ultimately be a problem. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775724 13f79535-47bb-0310-9956-ffa450edef68
2009-05-17guard memory_footprint() list with is_pid()Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775720 13f79535-47bb-0310-9956-ffa450edef68
2009-05-17one more hanging receive loop fixAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775715 13f79535-47bb-0310-9956-ffa450edef68
2009-05-17replicator should never hang when attachment receiver diesAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775685 13f79535-47bb-0310-9956-ffa450edef68
2009-05-17cleaner, more informative replicator log messagesAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775680 13f79535-47bb-0310-9956-ffa450edef68
2009-05-17Fixes COUCHDB-41Paul Joseph Davis
When a database doesn't exist, it now returns: {"error": "not_found", "reason": "no_db_file"} git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775577 13f79535-47bb-0310-9956-ffa450edef68
2009-05-16replicator memory management and buffer flush calculation updatesAdam Kocoloski
* new should_flush fun considers ndocs, nattachments, memory in making decision * memory utilized by attachment receivers is accounted for * download attachments using standalone connections instead of conn pool. This prevents a document request from getting stuck behind a huge attachment, which would prevent us from triggering a buffer flush in time. We also consider the memory utilization of the standalone ibrowse connection in should_flush git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775507 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13Fixes COUCHDB-349Paul Joseph Davis
Removing a _view can cause the database browser interface to break git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@774587 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13Adding testing for GET /_changes?continuous=true by adding a GET ↵Damien F. Katz
/_sleep?time=Msecs call, which allows the browser to process the waiting data on the other async XHR request. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@774474 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13JSONP support is thanks to Brad Anderson.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@774181 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13Closes COUCHDB-334 - Add JSONP support to CouchDBPaul Joseph Davis
Use JSONP by providing a ?callback=function_name URL paramter for any URL returning JSON data. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@774180 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12You can now specify either "_sum" or "_count" as the source code for 2 ↵John Christopher Anderson
built-in Erlang reduce functions. The framework is ready for YOU to add more built in reductions. The short list includes: _avg, _stddev, _min, and _max. We could also have one function that does all that in a single function, but it might not be as fun to use. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@774101 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12add offset parameter so clients like Futon can deliver a consistent user ↵Jan Lehnardt
experience git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@774095 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12Add non-streaming log-file handler. A GET request to /_log will show the ↵Jan Lehnardt
last 1000 bytes of the logflie. More bytes can be requested with GET /_log?bytes=10000. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@774045 13f79535-47bb-0310-9956-ffa450edef68
2009-05-10export a methodJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@773401 13f79535-47bb-0310-9956-ffa450edef68
2009-05-10refactor JSON body error handling, also consolidate update_docs JSON ↵John Christopher Anderson
response generation. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@773387 13f79535-47bb-0310-9956-ffa450edef68