History log of /5.5.2/couchdb/test/ (Results 126 - 150 of 373)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
e967379e30-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Use simplejson when available

The simplejson module is faster than the json module.

Change-Id: I9aa7ea0de137f5ef53eab1c5b4e370e77252d755
Reviewed-on: http://review.couchbase.org

Use simplejson when available

The simplejson module is faster than the json module.

Change-Id: I9aa7ea0de137f5ef53eab1c5b4e370e77252d755
Reviewed-on: http://review.couchbase.org/10476
Reviewed-by: Farshid Ghods <farshid.ghods@gmail.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

e4736d2828-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Minor set view index state transition fixes

When updating the partition states at a very fast pace,
some set view group state incosistences could happen
as well as stack traces to sm

Minor set view index state transition fixes

When updating the partition states at a very fast pace,
some set view group state incosistences could happen
as well as stack traces to small mistakes like badmatches
and copy-pastes.

This change also adds an extensive test for the case there's
an insanely high rate of partition state changes while the
index is being updated and cleanup is ongoing as well.

Change-Id: I2825e32e7013fed6bf9409e84dbd42caf070568c
Reviewed-on: http://review.couchbase.org/10448
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

b28938f028-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Use Python unittest module for set view tests

This provides more reliability and better organization for the
set view index tests (which are growing fast).

Change-Id: I7a6b328cd

Use Python unittest module for set view tests

This provides more reliability and better organization for the
set view index tests (which are growing fast).

Change-Id: I7a6b328cd58279bd2782bd19c27f40286364912f
Reviewed-on: http://review.couchbase.org/10447
Tested-by: Farshid Ghods <farshid.ghods@gmail.com>
Reviewed-by: Farshid Ghods <farshid.ghods@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

60ea5fee02-Nov-2011 Filipe David Manana <fdmanana@apache.org>

Fix ocassional test 011-file-headers.t failures

A call to couch_file:flush/1 was missing, since this was
a cherry pick from upstream.

Change-Id: Iaad64b3cae5031c98f23f67bd590e0c

Fix ocassional test 011-file-headers.t failures

A call to couch_file:flush/1 was missing, since this was
a cherry pick from upstream.

Change-Id: Iaad64b3cae5031c98f23f67bd590e0cc2c729e7d
Reviewed-on: http://review.couchbase.org/10545
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

7030a25431-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Fix retrieval of headers larger than 4k

Our headers start with a <<1>> and then four bytes indicating the length
of the header and its checksum. When the header is larger than 4090
b

Fix retrieval of headers larger than 4k

Our headers start with a <<1>> and then four bytes indicating the length
of the header and its checksum. When the header is larger than 4090
bytes it will be split across multiple blocks in the file and will need
to be reassembled on read. The reassembly consists of stripping out
<<0>> from the beginning of each subsequent block in the
remove_block_prefixes/2 function. The bug here is that we tell
remove_block_prefixes that we're starting 1 byte into the current block
instead of 5, so it ends up removing one good byte from the header and
injecting one or more random <<0>>s.

Headers larger than 4k are very rare and generally require a view group
with a huge number of indexes or indexes with fairly large reductions,
which explains why this bug has gone undetected until now.

Closes COUCHDB-1319.

Change-Id: I0583fcd9461dd627bae5119f787aacfcaafe5d46
Reviewed-on: http://review.couchbase.org/10478
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

6fe4a3e230-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Make attachment stream buffer size configurable

Instead of being hardcoded to 4Kb, it is now configurable.
A quick test using couch_doc:att_foldl/3 against a 128Kb
attachment written

Make attachment stream buffer size configurable

Instead of being hardcoded to 4Kb, it is now configurable.
A quick test using couch_doc:att_foldl/3 against a 128Kb
attachment written using a buffer of 4Kb and 32Kb:

Buffer size of 4Kb:

4> Att = hd(Doc#doc.atts).
type = <<"application/x-www-form-urlencoded">>,
att_len = 131072,disk_len = 131072,
md5 = <<76,223,24,223,251,252,182,43,98,104,11,89,222,122,
185,12>>,
revpos = 1,
data = {<0.159.0>,
[{79,8192},
{8277,8192},
{16475,8192},
{24673,8192},
{32871,8192},
{41069,8192},
{49267,8192},
{57465,8192},
{65663,8192},
{73861,8192},
{82059,8192},
{90257,8192},
{98455,8192},
{106653,8192},
{114851,8192},
{123049,8192}]},
encoding = identity}
5> element(1, timer:tc(couch_doc, att_foldl, [Att, fun(B, A) -> [B | A] end, []])).
1353

Buffer size of of 32Kb:

4> Att = hd(Doc#doc.atts).
type = <<"application/x-www-form-urlencoded">>,
att_len = 131072,disk_len = 131072,
md5 = <<76,223,24,223,251,252,182,43,98,104,11,89,222,122,
185,12>>,
revpos = 1,
data = {<0.157.0>,
[{79,40960},{41053,40960},{82027,40960},{123001,8192}]},
encoding = identity}
5> element(1, timer:tc(couch_doc, att_foldl, [Att, fun(B, A) -> [B | A] end, []])).
782

Closes COUCHDB-1009.

Change-Id: I064a942108389a79c85ce2a0fdb87a4ce24546c5
Reviewed-on: http://review.couchbase.org/10456
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

42b75f4728-Oct-2011 farshid <farshid.ghods@gmail.com>

remove Vendor specific info from vhost tests

we moved vendor information to voltron which applies the version number
during the build time so the default.ini file does not have a vendor

remove Vendor specific info from vhost tests

we moved vendor information to voltron which applies the version number
during the build time so the default.ini file does not have a vendor
section by default anymore

Change-Id: I255d739476144c58f91119fc97e62e2408850c70
Reviewed-on: http://review.couchbase.org/10439
Tested-by: Keith Batten <kbatten@gmail.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>

show more ...

9be2c74627-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Do set view updates mixed with cleanup

Now in a single btree pass we can update a set view index
and cleanup (purge by value) key/values that originated from
partitions marked for cl

Do set view updates mixed with cleanup

Now in a single btree pass we can update a set view index
and cleanup (purge by value) key/values that originated from
partitions marked for cleanup (excluded from the index).

So far the cleanup has been completely a separate process running
in the background when there was nothing else to do. Updates were
always prioritized over cleanups, meaning they would interrupt
the cleanup process. This could lead to edge cases where the cleanup
was delayed for too long (assuming no set view compaction happened).

Change-Id: I3c77231666a30e1d0ee9eec6cbcf7fd6a2d3deda
Reviewed-on: http://review.couchbase.org/10426
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

1c1a691725-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Add couch_btree functions add_remove/5 query_modify/6

These functions combine updates, insertions and deletions (by key)
with deletions by value. This reuses the helper function of the

Add couch_btree functions add_remove/5 query_modify/6

These functions combine updates, insertions and deletions (by key)
with deletions by value. This reuses the helper function of the
already existing function guided_purge/3.

The caller specifies 2 new extra arguments:
1) A purge function;
2) An accumulator for the purge function

The purge function is invoked against Key/Value pairs or against
the reduction value of intermediate (non-leaf) nodes to hint the
tree traversal code whether to go explore or not tree branches.

Change-Id: If17f47a4c18716587068fa26dc769b080d51a844
Reviewed-on: http://review.couchbase.org/10356
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

370c52a215-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Fix test test/etap/160-vhosts.t

It was broken after the vendor property was added.

Change-Id: Iaf2ed6e5f0271fdf042c7e6aa56de15ed8a581e9
Reviewed-on: http://review.couchbase.org/

Fix test test/etap/160-vhosts.t

It was broken after the vendor property was added.

Change-Id: Iaf2ed6e5f0271fdf042c7e6aa56de15ed8a581e9
Reviewed-on: http://review.couchbase.org/10399
Tested-by: Keith Batten <kbatten@gmail.com>
Tested-by: Farshid Ghods <farshid.ghods@gmail.com>
Reviewed-by: Farshid Ghods <farshid.ghods@gmail.com>

show more ...

Revision tags: couchbase_1.2.0, couchbase_1.1.2, couchbase_1.1.2a
1ed0468504-Jul-2011 Jan Lehnardt <jan@apache.org>

remove trailing spaces

Change-Id: I1fb132003474308837dd52542b265b9f1cc3c29a
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1142686 13f79535-47bb-0310-9956-ffa450edef68
Re

remove trailing spaces

Change-Id: I1fb132003474308837dd52542b265b9f1cc3c29a
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1142686 13f79535-47bb-0310-9956-ffa450edef68
Reviewed-on: http://review.couchbase.org/10398
Tested-by: Farshid Ghods <farshid.ghods@gmail.com>
Reviewed-by: Farshid Ghods <farshid.ghods@gmail.com>

show more ...

eb932f2b04-Jul-2011 Jan Lehnardt <jan@apache.org>

Allow "/" as a vhost target.

Includes a single whitespace fix.

Change-Id: I732fa6c2867890041ccd4933a9574ec029f76b56
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@11

Allow "/" as a vhost target.

Includes a single whitespace fix.

Change-Id: I732fa6c2867890041ccd4933a9574ec029f76b56
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1142685 13f79535-47bb-0310-9956-ffa450edef68
Reviewed-on: http://review.couchbase.org/10397
Tested-by: Farshid Ghods <farshid.ghods@gmail.com>
Reviewed-by: Farshid Ghods <farshid.ghods@gmail.com>

show more ...

bf2d5bab27-Sep-2011 Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

Add support for set views to couch_httpd_view_merger.

All the set views are located in the "sets" property of "views". Each
spec must specify view name in the same way as for simple spec

Add support for set views to couch_httpd_view_merger.

All the set views are located in the "sets" property of "views". Each
spec must specify view name in the same way as for simple specs and
the list of partitions. Though it's implicitly assumed that design
document database is always named 'master' for set views.

Example of merge spec:

{ "views": {
"sets" : {
"default" : {
"view" : "test/map",
"partitions" : [0,1,2,3,4,5,6,7]
}
}
}
}

Change-Id: Ib8bf403e0c16827b7579b4de96cf90c7d7223c9d
Reviewed-on: http://review.couchbase.org/9788
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

show more ...

71e765e024-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Simpler set view partition state update API

To change the state of partitions in a set view index, the
caller now calls a single function (set_partitions_states/5)
to set active, pas

Simpler set view partition state update API

To change the state of partitions in a set view index, the
caller now calls a single function (set_partitions_states/5)
to set active, passive and cleanup partitions, instead of
calling 3 different functions (set_passive_partitions/3,
set_active_partitions/3, set_cleanup_partitions/3).
When the caller has to set different states for a group of
partitions, this is also more efficient because it avoids
restarting the updater/cleaner/compactor multiple times
(one per set_*_partitions call).

Change-Id: I5eb21bf81a14fa88c030a3c58eca2617745440dc
Reviewed-on: http://review.couchbase.org/10315
Reviewed-by: Damien Katz <damien@couchbase.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

2b68818819-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Fix bad state transitions when updating bitmasks

The set view group state could be corrupted when new active
partitions were added and the updater was running. Same type
of issue cou

Fix bad state transitions when updating bitmasks

The set view group state could be corrupted when new active
partitions were added and the updater was running. Same type
of issue could happen when compaction was running.

Change-Id: I0062b5ddded60ad9235a85921dc7ce7ce71e5c88
Reviewed-on: http://review.couchbase.org/10207
Reviewed-by: Damien Katz <damien@couchbase.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

15fffed618-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Improve test/python/set_view/cleanup.py

Ensure that cleanup is running when we set partitions
1 and 2 as active.

Change-Id: I875610b9291debf7a7874a4a3cd3f389633fb89d
Reviewe

Improve test/python/set_view/cleanup.py

Ensure that cleanup is running when we set partitions
1 and 2 as active.

Change-Id: I875610b9291debf7a7874a4a3cd3f389633fb89d
Reviewed-on: http://review.couchbase.org/10188
Reviewed-by: Damien Katz <damien@couchbase.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

733e7a2218-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Fix builtin changes filters with ?descending=true

After a recent optimization (COUCHDB-1288), querying the _changes
feed using one of the builtin filters (_doc_ids, _design) with
?de

Fix builtin changes filters with ?descending=true

After a recent optimization (COUCHDB-1288), querying the _changes
feed using one of the builtin filters (_doc_ids, _design) with
?descending=true was not producing the correct results anymore.
This changes fixes it and adds a test.

Change-Id: Ic000264cdf2b6010be05d675d0e2705b53905580
Reviewed-on: http://review.couchbase.org/10185
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

ed2dddd318-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Block caller on partition state update when necessary

If a caller asks to make a partition active or passive while
the partition is still being cleaned, it will be blocked until
the

Block caller on partition state update when necessary

If a caller asks to make a partition active or passive while
the partition is still being cleaned, it will be blocked until
the partition cleanup finishes.

Change-Id: I231799d9c4fb250b33dbbe749725331d7706154a
Reviewed-on: http://review.couchbase.org/10182
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

54ec03e614-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Ensure bitmasks are not lost

If the updater is running and the bitmasks are updated,
make sure that when the updater finishes we don't lose any
of those bitmask updates.
Scenario

Ensure bitmasks are not lost

If the updater is running and the bitmasks are updated,
make sure that when the updater finishes we don't lose any
of those bitmask updates.
Scenarios:

1) The updater is running and partitions are toggled from passive
to active - we set the new group's (group received from the updater)
bitmask to our current bitmasks (active and passive)

2) The updater is running and partitions are toggled from active to
passive - we stop immediately the updater, update the new group's
bitmasks and restart the updater

3) The updater is running and partitions are marked for cleanup - we
stop immediately the updater, update the new group's bitmasks and
restart the updater

If the updater is stopped while still indexing the active partitions,
clients who requested the group with the stale=false option will not
be unblocked. They will only be unblocked as soon as all active
paritions are processed by the updater.

Change-Id: Ic5971e672a7389678468f3e23b8ea39925820b23
Reviewed-on: http://review.couchbase.org/10145
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

bf3dcf7f13-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Unblock clients as soon as active partitions are indexed

Don't make clients wait for the passive partitions to be
indexed. This is unncessary since the result produced by
those parti

Unblock clients as soon as active partitions are indexed

Don't make clients wait for the passive partitions to be
indexed. This is unncessary since the result produced by
those partitions are filtered when folding the view.
The updater indexes first the active partitions and then
the passive partitions.

Change-Id: I84de965e4d9cb9784f3e913d95a4b5b03f3be8c5
Reviewed-on: http://review.couchbase.org/10128
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

691ca82913-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Implement set view group info endpoint

Also add extra assertions to the tests to validate
cleanup, compaction, view updates and the stale
query option.

Change-Id: Id4642f0c0

Implement set view group info endpoint

Also add extra assertions to the tests to validate
cleanup, compaction, view updates and the stale
query option.

Change-Id: Id4642f0c0c7b5fc399592c7380e12397e3b1e33e
Reviewed-on: http://review.couchbase.org/10126
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

aa5b730c07-Oct-2011 Filipe David Manana <fdmanana@apache.org>

Add 'partitions' parameter to couch_set_view:get_{map,reduce}_view.

When requested view is folded then the results are returned only from
the specified partitions.

Change-Id: Ia

Add 'partitions' parameter to couch_set_view:get_{map,reduce}_view.

When requested view is folded then the results are returned only from
the specified partitions.

Change-Id: Ia8094c206f8d67d1cd461fe031fcec492a88ce27
Reviewed-on: http://review.couchbase.org/9786
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

339adeec27-Sep-2011 Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

Make request_group understand stale=false

Change-Id: I883d3514b390aa1be1ca371e7db6e88a7ab6ba8c
Reviewed-on: http://review.couchbase.org/9785
Reviewed-by: Filipe David Borba Manana <f

Make request_group understand stale=false

Change-Id: I883d3514b390aa1be1ca371e7db6e88a7ab6ba8c
Reviewed-on: http://review.couchbase.org/9785
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

b4d8f2c929-Sep-2011 Chiyoung Seo <chiyoung.seo@gmail.com>

Allow a clobber update to pass a new rev id to the couchdb.

This change allows the client to pass its own new rev id to the
couchdb when the clobber update option is used.

Chang

Allow a clobber update to pass a new rev id to the couchdb.

This change allows the client to pass its own new rev id to the
couchdb when the clobber update option is used.

Change-Id: I36080e26b88dddf57f3f169ffdc9ebf77f26013e
Reviewed-on: http://review.couchbase.org/9848
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>

show more ...

e7a6581e24-Aug-2011 Filipe David Manana <fdmanana@apache.org>

Add "set view" modules

These are the base for adding the superstart btree indexer and
querying capabilities.

Change-Id: Ie0b3cc5aa7012efaa3e61456bff84479822d3519
Reviewed-on

Add "set view" modules

These are the base for adding the superstart btree indexer and
querying capabilities.

Change-Id: Ie0b3cc5aa7012efaa3e61456bff84479822d3519
Reviewed-on: http://review.couchbase.org/9368
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

12345678910>>...15