History log of /6.6.0/kv_engine/engines/ep/tests/ep_testsuite_basic.cc (Results 1 - 25 of 126)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v7.0.2, v6.6.3, v7.0.1, v7.0.0, v6.6.2, v6.5.2, v6.6.1, v6.0.5, v6.6.0, v6.5.1, v6.0.4, v6.5.0
# 25e6056e 18-Oct-2019 Jim Walker <jim@couchbase.com>

MB-36547: Skip broken 'multi set' test for magma

Change-Id: Ie15e5919a5308cf3ddb2b0f4c6620138b3ced8c0
Reviewed-on: http://review.couchbase.org/116660
Reviewed-by: Dave Rigby <daver@c

MB-36547: Skip broken 'multi set' test for magma

Change-Id: Ie15e5919a5308cf3ddb2b0f4c6620138b3ced8c0
Reviewed-on: http://review.couchbase.org/116660
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


Revision tags: v6.0.3
# 92133b29 30-May-2019 scott.lashley <scott.lashley@couchbase.com>

MB-33463: Add magma to functional tests

The following tests were modified:
ep_testsuite.cc
test_bg_meta_stats - no bloom filters causes extra bg_meta_fetch
test_item_pager - memo

MB-33463: Add magma to functional tests

The following tests were modified:
ep_testsuite.cc
test_bg_meta_stats - no bloom filters causes extra bg_meta_fetch
test_item_pager - memory tracking set for couchstore
test_memory_condition - memory tracking set for couchstore
test_bloomfilter_conf - bloom filters off by default for magma
test_bloomfilters - bloom filters off by default for magma
test_bloomfilters_with_store_apis - bloom filters off by default for
magma
test_bloomfilter_delete_plus_set_scenario - bloom filters off by default
for magma
test_access_scanner - memory tracking set for couchstore
test_vb_file_stats - file stats not maintained in magma
test_vb_file_stats_after_warmup - file stats not maintained in magma
test_stats_diskinfo - file stats not maintained in magma
test_takeover_stats_num_persisted_deletes - persisted deletes not
maintained in magma
test_mb19635_upgrade_from_25x - upgrade
test_mb19687_fixed - upgrade
test_mb20697 - couchstore specific calls in test
test_mb20744_check_incr_reject_ops - couchstore specific calls in test
test_MB34173_warmup - couchstore specific calls in test

ep_testsuite_basic.cc
test_get_delete_missing_file - couchstore specific calls in test

ep_testsuite_dcp.cc
test_dcp_cursor_dropping - memory tracking set for couchstore
test_dcp_cursor_dropping_replication - memory tracking set for
couchstore
test_chk_manager_rollback - requires collections
test_fullrollback_for_consumer - requires collections
test_partialrollback_for_consumer - requires collections

Change-Id: I9badb5369282559e5da4e42cb5e8abb19a52be30
Reviewed-on: http://review.couchbase.org/110980
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# 413f71d4 11-Sep-2019 Trond Norbye <trond.norbye@gmail.com>

MB-35930: Add support for providing stat args

Allow the STAT call to contain a value containing a JSON
payload containing "arguments and options" to the given
STAT call.

It

MB-35930: Add support for providing stat args

Allow the STAT call to contain a value containing a JSON
payload containing "arguments and options" to the given
STAT call.

It is up to the stat call to define the schema for the
JSON provided to each stat group.

Change-Id: I8e88cddbcb8e7c9ceea22e368f5cc71238618f20
Reviewed-on: http://review.couchbase.org/114585
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>

show more ...


# 3d634688 21-Aug-2019 Jim Walker <jim@couchbase.com>

MB-35331: Increment flusher_todo for set_vbucket_state

Ensure wait_for_flusher_to_settle waits for a set_vbucket_state
by increasing the flusher_todo, which will be cleared once
the

MB-35331: Increment flusher_todo for set_vbucket_state

Ensure wait_for_flusher_to_settle waits for a set_vbucket_state
by increasing the flusher_todo, which will be cleared once
the flusher has committed its batch.

Commit also includes further debug for warmup_mb21769 test as
that still fails, even with the flusher_todo increment

Change-Id: Ib78ecc0f02da95a6aee3c9031bf445c7a11d365a
Reviewed-on: http://review.couchbase.org/113616
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# 8f0647d8 18-Jul-2019 Trond Norbye <trond.norbye@gmail.com>

Include what you use: platform/platform_thread.h

Some files get this header included from other headers. Include
the file explicitly to reduce the size of the patch which cleans
up t

Include what you use: platform/platform_thread.h

Some files get this header included from other headers. Include
the file explicitly to reduce the size of the patch which cleans
up the affected header.

Change-Id: I9a3e03a54031029688db94340d2f6cde1c916dc2
Reviewed-on: http://review.couchbase.org/112158
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Trond Norbye <trond.norbye@couchbase.com>

show more ...


# 56f74b70 12-Jul-2019 Dave Rigby <daver@couchbase.com>

Enable test 'vbucket deletion doesn't affect new data' under RocksDB

Enable this test under RocksDB as it now passes (spotted when
verifying behaviour of RocksDB for vBucket delete / cre

Enable test 'vbucket deletion doesn't affect new data' under RocksDB

Enable this test under RocksDB as it now passes (spotted when
verifying behaviour of RocksDB for vBucket delete / create).

Change-Id: Ia902d35cb4bc0668642453dde9c14547f1bddcc2
Reviewed-on: http://review.couchbase.org/111896
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: James Harrison <james.harrison@couchbase.com>

show more ...


Revision tags: v5.5.4
# e7c1ef02 15-Apr-2019 Dave Rigby <daver@couchbase.com>

MB-33067: Fix intermittent failure in test_get_delete_missing_file

The test checks the behaviour of ep-engine when the database file is
missing by deleting the entire data directory. How

MB-33067: Fix intermittent failure in test_get_delete_missing_file

The test checks the behaviour of ep-engine when the database file is
missing by deleting the entire data directory. However this could
conflict with the ep-engine stats persistence task, resulting in the
test failing as it couldn't delete a file it previously listed:

Running [0035/0047]: get/delete with missing db file
(couchstore)... Uncaught std::exception. what():cb::io::rmrf:
remove of file
./ep_testsuite_basic.full_eviction.comp_passive.db\stats.json.new
under ./ep_testsuite_basic.full_eviction.comp_passive.db failed:
The system cannot find the file specified.

Modify the method used to make the database inaccessible - instead
just chmod() the file to be inaccessible without removng it.

Change-Id: I5de178c47b762778820c172a8f40940180fc8faf
Reviewed-on: http://review.couchbase.org/107809
Reviewed-by: Ben Huddleston <ben.huddleston@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


Revision tags: v5.5.5
# 04c1c8ec 20-Mar-2019 Trond Norbye <trond.norbye@gmail.com>

Remove config.h

Change-Id: I79eb8c762971255db9d36a5f6461a8a6d0f29249
Reviewed-on: http://review.couchbase.org/106517
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave

Remove config.h

Change-Id: I79eb8c762971255db9d36a5f6461a8a6d0f29249
Reviewed-on: http://review.couchbase.org/106517
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


Revision tags: v5.5.6
# fc7f5450 15-Mar-2019 Trond Norbye <trond.norbye@gmail.com>

Use cb::io::isFile instead of nonstandard access

Change-Id: I6f6e567787561e0530c174eff75f6e8169730f27
Reviewed-on: http://review.couchbase.org/106256
Tested-by: Trond Norbye <trond.n

Use cb::io::isFile instead of nonstandard access

Change-Id: I6f6e567787561e0530c174eff75f6e8169730f27
Reviewed-on: http://review.couchbase.org/106256
Tested-by: Trond Norbye <trond.norbye@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# 064fffd6 07-Mar-2019 Trond Norbye <trond.norbye@gmail.com>

Remove unused header JSON_checker.h

Change-Id: Ie6e24f70c0f2bc636d004e0d06a974aed3c8393b
Reviewed-on: http://review.couchbase.org/105823
Tested-by: Build Bot <build@couchbase.com>

Remove unused header JSON_checker.h

Change-Id: Ie6e24f70c0f2bc636d004e0d06a974aed3c8393b
Reviewed-on: http://review.couchbase.org/105823
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


Revision tags: v6.0.1
# 5c80ed59 03-Jan-2019 Christopher Farman <christopher.farman@couchbase.com>

MB-32385: Remove test_bug2509

Removing test_bug2509 (ep_testsuite_basic:'retain rowid over a soft
delete') as it's use of usleep is undesirable and it is testing an
8 year old change

MB-32385: Remove test_bug2509

Removing test_bug2509 (ep_testsuite_basic:'retain rowid over a soft
delete') as it's use of usleep is undesirable and it is testing an
8 year old change that does not exist in the current code.

Change-Id: I2e0bb322b266014cd2a97e8027d066ee5ade674c
Reviewed-on: http://review.couchbase.org/103242
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


Revision tags: v5.5.3
# 2609b088 20-Nov-2018 Trond Norbye <trond.norbye@gmail.com>

MB-32001: Add Durability to the engine interface

Add the durability specification to the store part of the API,
and return NotSupported if it is being requested. This allows
the unde

MB-32001: Add Durability to the engine interface

Add the durability specification to the store part of the API,
and return NotSupported if it is being requested. This allows
the underlying engines to start implement it and add unit tests
while the core implements the protocol support.

Change-Id: I1498c84fde5d203b8455241c9b05f5d1709b01d5
Reviewed-on: http://review.couchbase.org/101949
Reviewed-by: Jim Walker <jim@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Paolo Cocchi <paolo.cocchi@couchbase.com>

show more ...


# df1d9aa0 19-Nov-2018 Trond Norbye <trond.norbye@gmail.com>

Refactor: Use SetParamPayload

Change-Id: Idd9426720c7e68c90e27a5e336e7e6377627afae
Reviewed-on: http://review.couchbase.org/101913
Tested-by: Build Bot <build@couchbase.com>
Revi

Refactor: Use SetParamPayload

Change-Id: Idd9426720c7e68c90e27a5e336e7e6377627afae
Reviewed-on: http://review.couchbase.org/101913
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# 70213898 08-Nov-2018 Ben Huddleston <ben.huddleston@couchbase.com>

MB-31797: Make RocksDB assume deletions are for non-existing items

Correct the bugs currently in the code that are found by setting
the CB_DEVELOPMENT_ASSERTS flag to ON.

Modify

MB-31797: Make RocksDB assume deletions are for non-existing items

Correct the bugs currently in the code that are found by setting
the CB_DEVELOPMENT_ASSERTS flag to ON.

Modify the RocksDB commit callback to assume that any deletions are
for items that do not exist. This ensures that we overcount the
vBucket document counts under RocksDB (we won't decrement for any
deletions) as opposed to undercount it. This is required as this calls
the PersistenceCallback which would attempt to decrement the vBucket doc
counter to a value less than 0. Skip the now failing RocksDB tests that
relied on this vBucket document counter, or the other counters in the
vBucket that are now not set correctly due to the return value of the
RocksDB commitCallback.

Change-Id: Idc40e14d9f343f91042a2f926f88f98004454ecb
Reviewed-on: http://review.couchbase.org/101551
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# c8a41aeb 12-Nov-2018 Trond Norbye <trond.norbye@gmail.com>

Add support for Flex Extras in set/add/del with meta

The "unknown command framework" will generate the appropriate
error packet to send back to the client if the handler returns
some

Add support for Flex Extras in set/add/del with meta

The "unknown command framework" will generate the appropriate
error packet to send back to the client if the handler returns
something else than ENGINE_SUCCESS. Utilize this instead
of generating the error packets inside ep-engine.

Fixed a problem in setWithMeta where we could leak memory
if the first call to setWithMeta returns EWOULDBLOCK and
the second one would fail (not all of the error paths
released the memory).

Use the Request class to fetch the various segments
of the packet to ensure that we correctly jump past the
flex info

Change-Id: I91e70b8aaff392aaa544dfb9a86d741f866e4349
Reviewed-on: http://review.couchbase.org/101689
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# a7578426 30-Oct-2018 Jim Walker <jim@couchbase.com>

MB-30487: [2/2] Enforce the collection max_ttl

This patch refactors the existing bucket max_ttl enforcement and embeds
it with the collection VB manifest.

Moving the bucket ttl

MB-30487: [2/2] Enforce the collection max_ttl

This patch refactors the existing bucket max_ttl enforcement and embeds
it with the collection VB manifest.

Moving the bucket ttl enforcement to the manifest allows collection and
bucket TTL to be checked with one collections map lookup.

The patch updates the following operations to apply the defined limit

* add
* set
* replace
* GAT
* set-with-meta

In terms of actual enforcement, the design requires that any collection
max_ttl overrides any bucket max_ttl, this logic is in processExpiryTime
and tested in CollectionsExpiryLimitTest::operation_test

Change-Id: I15fb9f3d212b9f7027df1549d2023ff994b46dfa
Reviewed-on: http://review.couchbase.org/101230
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Ben Huddleston <ben.huddleston@couchbase.com>

show more ...


# 26ea8579 15-Oct-2018 Richard de Mellow <richard.demellow@couchbase.com>

MB-31510 Use checkXX macros instead of using check (ep_testsuite_basic)

Changed tests in ep_testsuite_basic to use
checkeq, checkne, checkgt, checkge, checkle and checklt.
Instead of

MB-31510 Use checkXX macros instead of using check (ep_testsuite_basic)

Changed tests in ep_testsuite_basic to use
checkeq, checkne, checkgt, checkge, checkle and checklt.
Instead of check and boolean expressions. As these macros
provide values in failure messages.

Change-Id: I49d183b65633b35ee3b3aaa7a14245464d3b7f8e
Reviewed-on: http://review.couchbase.org/100621
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


Revision tags: v6.0.0, v5.1.3
# 9cca5bff 27-Sep-2018 Trond Norbye <trond.norbye@gmail.com>

Refactor: Use cb::mcbp::Status in ep-engine instead of uint16_t

This makes sure that we don't try to use undefined status
codes in any of the response packets generated.

Change-

Refactor: Use cb::mcbp::Status in ep-engine instead of uint16_t

This makes sure that we don't try to use undefined status
codes in any of the response packets generated.

Change-Id: I5fce55208b408712a92e7621ce3795e847d1da10
Reviewed-on: http://review.couchbase.org/100045
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


Revision tags: v5.5.2
# d6a2e687 05-Sep-2018 Christopher Farman <christopher.farman@couchbase.com>

MB-30552: Convert type of vBucket id's from uint16_t to Vbid [8/n]

(Stage 8 of n) This commit changes to the type of Vbid for
ep's tests, including mock.
Vbid allows greater control

MB-30552: Convert type of vBucket id's from uint16_t to Vbid [8/n]

(Stage 8 of n) This commit changes to the type of Vbid for
ep's tests, including mock.
Vbid allows greater control over what operations can be performed
on a vBucket id, as well as ensuring the output formatting is
consistent. To support the splitting of this into multiple stages,
Vbid can currently be implicitly converted back to uint16_t to
cover elements that have not yet been converted. During this,
there may be logs or prints with "vb:vb:", which should be fixed
within this set of changes.

Change-Id: Ie86933239982b0dd882746fcc5ea0e490b79b3e7
Reviewed-on: http://review.couchbase.org/99627
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# cd62790f 23-Aug-2018 Jim Walker <jim@couchbase.com>

MB-30865: [5/n] Change DocKey API to prepare for leb encoded keys

This patch does a simple API change so that the bulk of the
leb128 (in-memory) patch is smaller.

The primary ch

MB-30865: [5/n] Change DocKey API to prepare for leb encoded keys

This patch does a simple API change so that the bulk of the
leb128 (in-memory) patch is smaller.

The primary change is that DocKey (which is a view of a key)
needs to know if the key it is viewing encodes a collection-ID.

So we no longer are able to set the Collection-ID via the constructor,
we simply state if the key we are viewing does or does not
encode a collection-ID. However because this patch doesn't introduce
in-memory encoded keys, internally the DocKey constructor just sets
the Collection-ID to the default collection. However any where in
the code that does require a collection-ID other than default, the
patch adds some temporary constructors so that the ID can be specified.

The next patch in this series, removes those temporary consructors
and up-dates DocKey/StoredDocKey/Serialised/DocKey to use the
encoded flag to properly store and decode a leb128 prefixed key.

Change-Id: I11d0c5e2c6a2290a6ac5968d072c66acab99e288
Reviewed-on: http://review.couchbase.org/98758
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 8d08d4b0 07-Aug-2018 Trond Norbye <trond.norbye@gmail.com>

MB-30149: Drop duplicate parameter to test functions [29/n]

This patch drops the second parameter to the test function which
used to be a pointer to the first interface version of the en

MB-30149: Drop duplicate parameter to test functions [29/n]

This patch drops the second parameter to the test function which
used to be a pointer to the first interface version of the engine
interface.

Change-Id: Ic42e7089c0d3b6c9167c9b7c5974ee1ffc4259fc
Reviewed-on: http://review.couchbase.org/97915
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# f7728a93 07-Aug-2018 Trond Norbye <trond.norbye@gmail.com>

MB-30149: Drop duplicate parameter to test functions [26/n]

* wait_for_warmup_complete

Change-Id: Iafbdf48ca2757c2edd0cadac34f9b5c978a76aac
Reviewed-on: http://review.couchbas

MB-30149: Drop duplicate parameter to test functions [26/n]

* wait_for_warmup_complete

Change-Id: Iafbdf48ca2757c2edd0cadac34f9b5c978a76aac
Reviewed-on: http://review.couchbase.org/97903
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# d1e85d65 07-Aug-2018 Trond Norbye <trond.norbye@gmail.com>

Cleanup: Don't use h1 in ep_testsuite*.cc

The parameter will go away

Change-Id: I4e1cd8985dd8d1de426581a0c1a367a53f92a526
Reviewed-on: http://review.couchbase.org/97911
Test

Cleanup: Don't use h1 in ep_testsuite*.cc

The parameter will go away

Change-Id: I4e1cd8985dd8d1de426581a0c1a367a53f92a526
Reviewed-on: http://review.couchbase.org/97911
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# 106451da 07-Aug-2018 Trond Norbye <trond.norbye@gmail.com>

MB-30149: Drop duplicate parameter to test functions [25/n]

* del

Change-Id: I0080ca62eaed1411073cd997b6cdf22c36be3319
Reviewed-on: http://review.couchbase.org/97902
Teste

MB-30149: Drop duplicate parameter to test functions [25/n]

* del

Change-Id: I0080ca62eaed1411073cd997b6cdf22c36be3319
Reviewed-on: http://review.couchbase.org/97902
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# 361434d1 06-Aug-2018 Trond Norbye <trond.norbye@gmail.com>

MB-30149: Drop duplicate parameter to test functions [24/n]

* get_item_info

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

MB-30149: Drop duplicate parameter to test functions [24/n]

* get_item_info

Change-Id: I858349474886d4e15913347fe7700810ee3d47d5
Reviewed-on: http://review.couchbase.org/97883
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


123456