Permalink
Switch branches/tags
Nothing to show
Commits on Mar 16, 2012
  1. Implement get_meta in mccouch

    get_meta is similar to get but only returns an item's metadata.
    
    Change-Id: I9575178ef91cff9c2c455647814ac7c43ccedc27
    Reviewed-on: http://review.couchbase.org/12212
    Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    Tested-by: Srinivas Vadlamani <srinivas@couchbase.com>
    Srinivas Vadlamani committed Jan 7, 2012
  2. Update max_deleted_seqno in Couch for deletes

    While persisting deletes to Couch, we batch them, compute the max
    seqno and update the appropriate per vbucket max deleted seqno values
    in Couch.
    
    Change-Id: I3ae0a368a39acc1cbd1d7ea0d0711f467dc3c822
    Reviewed-on: http://review.couchbase.org/12010
    Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    Tested-by: Srinivas Vadlamani <srinivas@couchbase.com>
    Srinivas Vadlamani committed Jan 3, 2012
  3. delete-with-meta implementation in mccouch

    Change-Id: Ie1dd8f1cc1e30fe82279fe708d9444a2e6db594b
    Reviewed-on: http://review.couchbase.org/12009
    Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    Tested-by: Srinivas Vadlamani <srinivas@couchbase.com>
    Srinivas Vadlamani committed Dec 29, 2011
  4. Persist/Load the per vbucket MaxDeletedSeqno values

    The max deleted seqno values are initialized to _local/vbstate as part
    set_vbucket_state() function the first time vbuckets are created.
    
    The persisted values are returned as part of get_state() which is
    used during warmup to build the initial state.
    
    A separate change set will add the code to incrementally update the
    seqno values as delete mutations are received and persisted to Couch.
    
    Change-Id: Ic63c77d4fa3724382ca05def3d5ca1681251e0a7
    Reviewed-on: http://review.couchbase.org/11903
    Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    Tested-by: Srinivas Vadlamani <srinivas@couchbase.com>
    Srinivas Vadlamani committed Dec 27, 2011
Commits on Feb 29, 2012
  1. Fix flush command to preserve stored json value.

    Change-Id: I82699400bcda1d91f8921e389423485cc2aa6e1b
    Reviewed-on: http://review.couchbase.org/13673
    Reviewed-by: Jin Lim <jin@couchbase.com>
    Tested-by: Jin Lim <jin@couchbase.com>
    Reviewed-by: Damien Katz <damien@couchbase.com>
    Damien Katz committed Feb 28, 2012
Commits on Feb 24, 2012
  1. Change logging to consistently use couchdb log macros

    Some log lines were using error_logger module, some using couchdb
    ?LOG_ERROR, ?LOG_INFO macros. Change all to use CouchDB macros.
    
    Change-Id: I3811e99122bd67ba26fd3cb1219348f226bb99ed
    Reviewed-on: http://review.couchbase.org/13582
    Tested-by: Damien Katz <damien@couchbase.com>
    Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Reviewed-by: Damien Katz <damien@couchbase.com>
    Damien Katz committed Feb 24, 2012
  2. Add VBucketState handling to update notification.

    When we update the vbucket state inside ep-engine, we need to
    notify ns_server. This does that via mc_couch through the same
    update notification message to update the in-memory db header.
    
    Change-Id: Id33ff76e5c6f89e284998ac99222e7c01384f166
    Reviewed-on: http://review.couchbase.org/13566
    Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Reviewed-by: Damien Katz <damien@couchbase.com>
    Tested-by: Damien Katz <damien@couchbase.com>
    Damien Katz committed Feb 23, 2012
Commits on Feb 21, 2012
  1. API to allow external process updates to file.

    This will allow external processes to create and update couch files.
    
    Change-Id: I12dff05a57ec8c789a8e79a459f98f3b46996d38
    Reviewed-on: http://review.couchbase.org/13235
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Reviewed-by: Damien Katz <damien@couchbase.com>
    Tested-by: Damien Katz <damien@couchbase.com>
    Damien Katz committed Feb 14, 2012
Commits on Feb 14, 2012
  1. Making doc_info and doc body info simpler, for use by couchstore.

    Making some corresponding changes here, and simplifying code.
    
    Change-Id: I7733101d6e8d0886836167ff24b1b31ebceac50a
    Reviewed-on: http://review.couchbase.org/13099
    Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
    Reviewed-by: Damien Katz <damien@couchbase.com>
    Tested-by: Damien Katz <damien@couchbase.com>
    Damien Katz committed Feb 8, 2012
Commits on Feb 8, 2012
  1. Fix for mccouch crashes when trying to ensure full commits of database

    that don't exist or have been deleted.
    
    Change-Id: I6eb86462eb9b50b35565419a8470895924f39348
    Reviewed-on: http://review.couchbase.org/13110
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Damien Katz committed with alk Feb 8, 2012
Commits on Feb 1, 2012
  1. don't call couch_db:set_revs_limit anymore

    Because it was wiped from couchdb.
    
    Change-Id: I8004a65c5cd56cf69020bec7967476eed795fc36
    Reviewed-on: http://review.couchbase.org/12836
    Reviewed-by: Damien Katz <damien@couchbase.com>
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Aliaksey Kandratsenka committed with alk Jan 31, 2012
Commits on Jan 30, 2012
  1. MB-4713 Pre and post flush events are synchronous.

    Change-Id: I0091036aa5e1cd9e51fc4b5f2d558943b73b900f
    Reviewed-on: http://review.couchbase.org/12777
    Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    aartamonau committed with alk Jan 29, 2012
Commits on Jan 21, 2012
  1. Announce two events before and after flush_all command.

    Change-Id: I69ebb7f30e43cf97936948e360384e3b6380a2a9
    Reviewed-on: http://review.couchbase.org/12546
    Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
    Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    Reviewed-by: Srinivas Vadlamani <srinivas@couchbase.com>
    aartamonau committed with Srinivas Vadlamani Jan 21, 2012
  2. Announce vbucket deletion via mc_couch_events.

    Change-Id: Id29f28c253902dfdf769da9e988ac40f34a8d8c8
    Reviewed-on: http://review.couchbase.org/12545
    Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
    Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    Reviewed-by: Srinivas Vadlamani <srinivas@couchbase.com>
    aartamonau committed with Srinivas Vadlamani Jan 21, 2012
  3. Announce only one event per vbucket state change.

    It turned out that we don't need the pre state change event.
    
    Change-Id: I6f2c522b01d0c9a77eb9d70d83726454153178a2
    Reviewed-on: http://review.couchbase.org/12544
    Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
    Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    Reviewed-by: Srinivas Vadlamani <srinivas@couchbase.com>
    aartamonau committed with Srinivas Vadlamani Jan 21, 2012
Commits on Jan 9, 2012
  1. addressed dialyzer warnings

    Change-Id: I92a5791b1123e73e256a93efd711f61d7d6f7c92
    Reviewed-on: http://review.couchbase.org/12174
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Aliaksey Kandratsenka committed with alk Jan 9, 2012
Commits on Jan 3, 2012
  1. Build empty documents correctly

    Change-Id: Iee9853d4492a8c970dd078a85e4310441be26117
    Reviewed-on: http://review.couchbase.org/12019
    Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    daleharvey committed with alk Jan 3, 2012
  2. Adding ensure_full_commit when transaction is complete.

    This ensures all data is completely committed to disk for each ep-engine
    transaction with minimal performance impact.
    
    Change-Id: I9b2a282b5bdbd84aa869b977431e880f1b474f08
    Reviewed-on: http://review.couchbase.org/12002
    Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Damien Katz committed with alk Jan 3, 2012
Commits on Dec 30, 2011
  1. Removal of CouchDB revision tree support for efficiency

    XDCR is broken. Otherwise ready for testing.
    
    Change-Id: Ieab0ef5f93a5d2040a47fafabec42679bd3a4522
    Reviewed-on: http://review.couchbase.org/11222
    Reviewed-by: Dustin Sallings <dustin@spy.net>
    Reviewed-by: Damien Katz <damien@couchbase.com>
    Tested-by: Damien Katz <damien@couchbase.com>
    Damien Katz committed Nov 29, 2011
Commits on Dec 21, 2011
  1. Announce pre and post events when vbucket state changes.

    Now there are two events that are sent when vbucket state changes:
    pre_set_vbucket and post_set_vbucket. And both of them announced
    synchronously. Thus subscribers now should be very careful about what
    they are doing in handlers.
    
    Change-Id: If35b37a689ec8fc381db1937d428a09cc72c00d0
    Reviewed-on: http://review.couchbase.org/11777
    Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
    Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    aartamonau committed with alk Dec 21, 2011
Commits on Dec 16, 2011
  1. Link Socket to mc_daemon process to close always.

    Fixes problem where if mc_connection process crashes, the
    tcp socket will be unaware and stay open forever. Also
    change terminate policy from brutal kill to timed shutdown.
    
    Change-Id: Ife8c88a077f8bdd878784aad18a6a9748988ab5f
    Reviewed-on: http://review.couchbase.org/11686
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Tested-by: Damien Katz <damien@couchbase.com>
    Reviewed-by: Damien Katz <damien@couchbase.com>
    Damien Katz committed Dec 15, 2011
Commits on Dec 7, 2011
  1. Use ?LOG_ERROR for logging error messages.

    Change-Id: I371865e092bfbdc7652b95723a994ba1028aa55d
    Reviewed-on: http://review.couchbase.org/11503
    Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
    Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    aartamonau committed with alk Dec 7, 2011
Commits on Nov 30, 2011
  1. made vbuckets creation quicker. Related to MB-4466

    Shutting down buckets sometimes takes lots of time which is causing
    node join to time out. This is happening when ep-engine's mc-kvstore
    is busy in snapshot_vbucket_states command. That command takes a lot
    of time to complete when it has to create lots of vbucket databases in
    mccouch. This commit speeds it up by creating vbuckets databases in
    parallel.
    
    Change-Id: I6c6d110cb4691d526261cdea492b09066c1ce21d
    Reviewed-on: http://review.couchbase.org/11246
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
    Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
    Aliaksey Kandratsenka committed with aartamonau Nov 28, 2011
  2. log vbucket states checkpointing operations

    Change-Id: I4609ed420861cb53b6eff1754a167c727bfa2c47
    Reviewed-on: http://review.couchbase.org/11245
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
    Aliaksey Kandratsenka committed with aartamonau Nov 28, 2011
Commits on Nov 18, 2011
  1. More efficient tap streaming by using couch_db:fast_reads/2

    Change-Id: Ia962742f1d4c2284a9bd34af714d08a6465fd0d8
    Reviewed-on: http://review.couchbase.org/10919
    Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    Damien Katz committed with chiyoung Nov 15, 2011
  2. More efficient TCP sending

    Change-Id: Iec596ebd5f6caf3f4cd332dd490c9e42406c3cf9
    Reviewed-on: http://review.couchbase.org/10874
    Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    Reviewed-by: Dustin Sallings <dustin@spy.net>
    Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    Damien Katz committed with chiyoung Nov 14, 2011
Commits on Nov 11, 2011
  1. Remove unneeded conversion of checkpoint id to binary.

    Change-Id: If15575a5d5c2a0ffc587bc4efa5ea1841b9ee649
    Reviewed-on: http://review.couchbase.org/10807
    Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
    Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    aartamonau committed Nov 11, 2011
  2. Announce checkpoint id in set_vbucket event.

    Change-Id: I287918f755455a4374d8d29af151af1431dd641c
    Reviewed-on: http://review.couchbase.org/10806
    Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
    Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    aartamonau committed Nov 11, 2011
  3. Set state correctly after flush_all command.

    We need to extract only a state name from state object and only then
    we can set it using set_vbucket call.
    
    Change-Id: Ib8d83d2a6eac271b3a94220ccbaefccaa77735bf
    Reviewed-on: http://review.couchbase.org/10805
    Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
    Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    aartamonau committed Nov 11, 2011
  4. Remove unused Cas param, which is actually encoded in rev and metadata.

    Change-Id: I2cd55957765fc39cb2864524f69d92a160424c5a
    Reviewed-on: http://review.couchbase.org/10794
    Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    Reviewed-by: Damien Katz <damien@couchbase.com>
    Tested-by: Damien Katz <damien@couchbase.com>
    Damien Katz committed Nov 11, 2011
  5. Faster loading by leaving docs as JSON bins and simple parsing.

    Change-Id: Ibac79bee935e250fb5f1a142835d023d86ef4eed
    Reviewed-on: http://review.couchbase.org/10789
    Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    Damien Katz committed with chiyoung Nov 11, 2011
Commits on Nov 10, 2011
  1. MB-4411 A worker should wait for a signal from its parent process.

    A batch worker might finish its execution before its parent
    process gets the worker's monitor Ref value. Consequently, this
    causes a crash in mc_daemon process. To resolve this issue,
    each batch worker should wait for a signal from its parent process
    before starting its execution.
    
    Change-Id: Iab63c1608a6e3fe6367654d996b7484d9f56b623
    Reviewed-on: http://review.couchbase.org/10752
    Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
    chiyoung committed Nov 10, 2011
Commits on Nov 8, 2011
  1. Provide a vbucket state in a JSON format.

    As a vbucket state consists of multiple fields (i.e., state,
    checkpoint_id), it is necessary to export it in a JSON format.
    
    Change-Id: I9ee02649135f1ba35a6be3a002b2727a2fd14e79
    Reviewed-on: http://review.couchbase.org/10662
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Reviewed-by: Damien Katz <damien@couchbase.com>
    Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    chiyoung committed Nov 7, 2011
Commits on Nov 4, 2011
  1. Move non-memcached command opcode values to be larger than 0x80

    Change-Id: I873b4766c7ccb2da5fe6c877c3708d7f0525d33f
    Reviewed-on: http://review.couchbase.org/10600
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    chiyoung committed Nov 3, 2011
  2. Force each worker to write items into a single vbucket database

    This change allows each writer to write items into a single
    vbucket database only by spawning a new worker whenever an item
    with the new vbucket Id is received. Consequently, there are no
    more than one writer for a given database at anytime. In addition,
    batch-related parameters (i.e., batch size and number of workers)
    are removed from the config file and now configured and controlled
    by ep-engine.
    
    Change-Id: I6c38d7d872699ddf6c4abfad1628256a27709ecc
    Reviewed-on: http://review.couchbase.org/10567
    Reviewed-by: Steve Yen <steve.yen@gmail.com>
    Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>
    chiyoung committed Nov 1, 2011