History log of /6.6.0/kv_engine/engines/ep/tests/mock/mock_ep_bucket.h (Results 1 - 9 of 9)
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
# 4011652d 25-Nov-2019 Jim Walker <jim@couchbase.com>

MB-36948: Update VBucket construction to set the maxVisibleSeqno

When a vbucket is constructed it needs to know the maxVisibleSeqno
to start from.

Change-Id: I921368a71095bdba47

MB-36948: Update VBucket construction to set the maxVisibleSeqno

When a vbucket is constructed it needs to know the maxVisibleSeqno
to start from.

Change-Id: I921368a71095bdba47158657e26dcf645925ec06
Reviewed-on: http://review.couchbase.org/118460
Well-Formed: Build Bot <build@couchbase.com>
Reviewed-by: Ben Huddleston <ben.huddleston@couchbase.com>
Reviewed-by: Paolo Cocchi <paolo.cocchi@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 9bde5184 08-Oct-2019 Dave Rigby <daver@couchbase.com>

MB-36380 [1/2]: Regression test for missing Flusher wakeup

Regression test for the wakeup issue seen in MB-36380. The test and
fix are broken into separate patches to keep the fix patch

MB-36380 [1/2]: Regression test for missing Flusher wakeup

Regression test for the wakeup issue seen in MB-36380. The test and
fix are broken into separate patches to keep the fix patch "clean",
given the test requires new infrastructure / injection hooks.

See the associated [2/2] patch which actually fixes the issue for a
description of the problem.

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

show more ...


Revision tags: v6.0.3
# 9a7b435e 11-Sep-2019 Ben Huddleston <ben.huddleston@couchbase.com>

MB-35934: Skip deleted vBuckets in DurabilityCompletionTask

The task incorrectly assumed that if it was scheduled for a given
vBucket then the vBucket would still exist. Skip these vBuck

MB-35934: Skip deleted vBuckets in DurabilityCompletionTask

The task incorrectly assumed that if it was scheduled for a given
vBucket then the vBucket would still exist. Skip these vBuckets if
we cannot acquire the shared_ptr to them.

Also, fix an issue where we incorrectly did not wake the task on the
first SyncWrite that should schedule a vBucket (sets pendingVBs[vbid]
from false to true). Previously we would only wake the task for
any other transition (e.g. true to true).

Change-Id: I176e68b9f605408b5f704023c30847ad56ebd79d
Reviewed-on: http://review.couchbase.org/114619
Reviewed-by: James Harrison <james.harrison@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>

show more ...


# 97b606f6 16-Aug-2019 Dave Rigby <daver@couchbase.com>

Move Mock{Ep,Ephemeral}Bucket defns to .cc

Move the definitions of methods in classes Mock{Ep,Ephemeral}Bucket
into new .cc files. This minimises the headers needed in the .h files;

Move Mock{Ep,Ephemeral}Bucket defns to .cc

Move the definitions of methods in classes Mock{Ep,Ephemeral}Bucket
into new .cc files. This minimises the headers needed in the .h files;
in turn reducing the number of other headers pulled in by users of the
Mock classes.

Also create a new Object Library to group the various mock_XXX.cc
files, so we don't have to specify the individual source files
multiple times when used by different programs.

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

show more ...


# 30317c7f 16-Aug-2019 Dave Rigby <daver@couchbase.com>

Minimise includes of executorpool.h

Remove the include of executorpool.h from kvbucket.h; then add it back
into the specific .cc files which require it.

Change-Id: I7256be2ccef7

Minimise includes of executorpool.h

Remove the include of executorpool.h from kvbucket.h; then add it back
into the specific .cc files which require it.

Change-Id: I7256be2ccef778ebbf6f526a3f82fb637e7f0603
Reviewed-on: http://review.couchbase.org/113435
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@couchbase.com>

show more ...


Revision tags: v5.5.4, v5.5.5
# ee212e53 03-Apr-2019 Dave Rigby <daver@couchbase.com>

MB-33389 [SR]: Persist replicationTopology & load during warmup

Persist the replication Topology of each vBucket as part of the
vbucket_state. Load this from disk during warmup, allowing

MB-33389 [SR]: Persist replicationTopology & load during warmup

Persist the replication Topology of each vBucket as part of the
vbucket_state. Load this from disk during warmup, allowing clients
(i.e. ns_server) to query the topology via the 'vbucket-details' stats
call.

Change-Id: I3e8b098b78221d96efb7687857a7d2ddfb6f2502
Reviewed-on: http://review.couchbase.org/107234
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Paolo Cocchi <paolo.cocchi@couchbase.com>

show more ...


Revision tags: v5.5.6
# 45b99986 13-Mar-2019 Daniel Owen <owend@couchbase.com>

Refactor: Move test code out of CheckpointManager

The following methods in CheckpointManager are only used for testing
purposes.

- getNumOfCursors
- getNumCheckpoint
- n

Refactor: Move test code out of CheckpointManager

The following methods in CheckpointManager are only used for testing
purposes.

- getNumOfCursors
- getNumCheckpoint
- nextItem

This patch moves them out into a newly created MockCheckpointManager
class that is only used for testing purposes.

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

show more ...


Revision tags: v6.0.1, v5.5.3, v6.0.0, v5.1.3, v5.5.2, v5.5.1, v5.1.2, v5.1.1
# d3ec2c0f 19-Apr-2018 Daniel Owen <owend@couchbase.com>

MB-29265: Ensure frequencyCounterSaturated callback is initialized

The function invoked when a storedValue's frequency counter becomes
saturated, is held as a callback within the hash ta

MB-29265: Ensure frequencyCounterSaturated callback is initialized

The function invoked when a storedValue's frequency counter becomes
saturated, is held as a callback within the hash table.
It is important that the callback is always intialized to a valid
function otherwise it will throw an exception if accidently invoked.

However this is a "safety net" because when creating vbucket either via
KVBucket::setVBucketState_UNLOCKED or Warmup::createVBuckets we should
set the function to the task responsible for waking the ItemFreqDecayer
task.

The issue was that we did not set the function in the warmup case,
furthermore as we did not initialize at construction it resulted in an
exception being thrown.

This patch addresses the issue by initializing the callback at
construction and also setting it it to the correct value in the warmup
case.

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

show more ...


# e843fff3 08-Feb-2018 Daniel Owen <owend@couchbase.com>

MB-22010: Implement statistical counter eviction policy

Implements the eviction policy for the statistical counter. The policy
is describes as follows:

The algorithm first calc

MB-22010: Implement statistical counter eviction policy

Implements the eviction policy for the statistical counter. The policy
is describes as follows:

The algorithm first calculates the percentage of total memory that
we need to recover to get below the low water mark. This percentage
is used as an initial estimate of how many items to evict from the hash
tables.

The algorithm visits each vbucket in turn. For each vbucket we visit
every item in the hash table. For each item we:
- Add its frequency count to a histogram.
- Use the estimate percentage to retrieve a frequency threshold from the
histogram (Note: as an opitmisation we do not update the estimate
on every item that is visited).
- Get the frequency count of the current item and if it below or equal
to the threshold we evict it from the hash table.

It is possible that the percentage estimate of items to evict is not
sufficient to bring the total memory memory usage below the low water
mark. Therefore we have an evictionMultiplier that is used to increase
the estimate if additional pass of the algorithm are required.

The multipler is increased each time an additional pass of the algorithm
is required, therefore ensuring that we evict sufficient items to drop
below the low water mark.

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

show more ...