<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/mongo.git/src/mongo/dbtests/indexcatalogtests.cpp, branch master</title>
<subtitle>github.com: mongodb/mongo.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/'/>
<entry>
<title>SERVER-70556 Clean up index catalog counter methods</title>
<updated>2022-10-18T16:48:55+00:00</updated>
<author>
<name>Shin Yee Tan</name>
<email>shinyee.tan@mongodb.com</email>
</author>
<published>2022-10-18T14:39:47+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=d03513d69058626ed48812e41bf444c50655e6fa'/>
<id>d03513d69058626ed48812e41bf444c50655e6fa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-65488 Change OldClientContext ctor to take in NamespaceString</title>
<updated>2022-07-06T18:31:40+00:00</updated>
<author>
<name>Sophia Tan</name>
<email>sophia_tll@hotmail.com</email>
</author>
<published>2022-07-06T17:04:19+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=bab8a18eea2c606f9e05d0c064f90670bf36d327'/>
<id>bab8a18eea2c606f9e05d0c064f90670bf36d327</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-62918 Change DBLock to use DatabaseName</title>
<updated>2022-06-27T16:42:48+00:00</updated>
<author>
<name>jannaerin</name>
<email>golden.janna@gmail.com</email>
</author>
<published>2022-06-27T15:38:12+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=ab5428c183b85d97c8c7016de4aefa34d055adcb'/>
<id>ab5428c183b85d97c8c7016de4aefa34d055adcb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-62370 Remove the _opCtx from the CollectionWriter and instead use the passed in opCtx</title>
<updated>2022-06-10T16:22:12+00:00</updated>
<author>
<name>Shin Yee Tan</name>
<email>shinyee.tan@mongodb.com</email>
</author>
<published>2022-06-10T15:33:45+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=d94f6725598eac9b617bd5b1d383254f174b089a'/>
<id>d94f6725598eac9b617bd5b1d383254f174b089a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-63865 Handle missing index idents during standalone startup recovery</title>
<updated>2022-05-31T14:41:36+00:00</updated>
<author>
<name>Gregory Noma</name>
<email>gregory.noma@gmail.com</email>
</author>
<published>2022-05-20T15:47:42+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=0b5f72d6e251cb402aa3d8bb102cbba6b5734e8d'/>
<id>0b5f72d6e251cb402aa3d8bb102cbba6b5734e8d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-52877 Unify how writable Collections instances are handled</title>
<updated>2022-04-05T14:17:12+00:00</updated>
<author>
<name>Henrik Edin</name>
<email>henrik.edin@mongodb.com</email>
</author>
<published>2022-04-05T13:25:46+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=fa32d665bd63de7a9d246fa99df5e30840a931de'/>
<id>fa32d665bd63de7a9d246fa99df5e30840a931de</id>
<content type='text'>
CollectionCatalog::LifetimeMode has been removed. Catalog writes now
require that we are in an active WUOW.

Make it allowed to use WriteUnitOfWork when the server is in readOnly
mode. It does not open storage sessions, just allows registration of
RecoveryUnit callbacks that are executed when calling commit(). This
allows for the unification of code where we need to initialize Collection
instances even in readOnly mode.

Handling of enforcing readOnly has been pushed down to the RecordStore.
All interfaces that perform write now check if we are in readOnly mode
and throw if we are.

Catalog updates using the BatchedCollectionCatalogWriter class bypass
the Collection cloning if the batched CollectionCatalog instance already
has a uniquely owned copy (a previous write to this collection has been
requested). It is also not required to be in an active WUOW when the
BatchedCollectionCatalogWriter is used.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CollectionCatalog::LifetimeMode has been removed. Catalog writes now
require that we are in an active WUOW.

Make it allowed to use WriteUnitOfWork when the server is in readOnly
mode. It does not open storage sessions, just allows registration of
RecoveryUnit callbacks that are executed when calling commit(). This
allows for the unification of code where we need to initialize Collection
instances even in readOnly mode.

Handling of enforcing readOnly has been pushed down to the RecordStore.
All interfaces that perform write now check if we are in readOnly mode
and throw if we are.

Catalog updates using the BatchedCollectionCatalogWriter class bypass
the Collection cloning if the batched CollectionCatalog instance already
has a uniquely owned copy (a previous write to this collection has been
requested). It is also not required to be in an active WUOW when the
BatchedCollectionCatalogWriter is used.
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-61158 IndexCatalog::refreshEntry() accepts CreateIndexEntryFlags</title>
<updated>2021-11-04T00:24:08+00:00</updated>
<author>
<name>Benety Goh</name>
<email>benety@mongodb.com</email>
</author>
<published>2021-11-03T23:44:01+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=058019e29ff1c96f09fa9c183f94bcd840126372'/>
<id>058019e29ff1c96f09fa9c183f94bcd840126372</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-56002 SERVER-56023 Store Collection metadata in the Collection and reply on the copy-on-write machinery to keep it in sync with the durable catalog.</title>
<updated>2021-05-20T19:18:53+00:00</updated>
<author>
<name>Henrik Edin</name>
<email>henrik.edin@mongodb.com</email>
</author>
<published>2021-05-11T18:30:26+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=11de948b0c50df7d12de09ae0f01e791fc5d70d7'/>
<id>11de948b0c50df7d12de09ae0f01e791fc5d70d7</id>
<content type='text'>
All updates to the metadata needs to happen through the Collection, moved interfaces from the DurableCatalog to the Collection.
Removed back pointer to Collection in IndexCatalogEntryImpl, interfaces now correctly take a const or non-const Collection. This should make its iterface const-correct to avoid making bugs where the copy-on-write system for Collections are bypassed.

Multikey handle is special as it needs to happen without exclusive access to the Collection. Implemented isolation for the Collection metadata when multikey is changed. It handles multi-doc transactions and is only commited to the Collection instance after the write to the durable catalog successfully commits.

listCollections and listIndexes can now safetly read the metadata cache without needing to read from the durable catalog making them safe to do without Collection level locks.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All updates to the metadata needs to happen through the Collection, moved interfaces from the DurableCatalog to the Collection.
Removed back pointer to Collection in IndexCatalogEntryImpl, interfaces now correctly take a const or non-const Collection. This should make its iterface const-correct to avoid making bugs where the copy-on-write system for Collections are bypassed.

Multikey handle is special as it needs to happen without exclusive access to the Collection. Implemented isolation for the Collection metadata when multikey is changed. It handles multi-doc transactions and is only commited to the Collection instance after the write to the durable catalog successfully commits.

listCollections and listIndexes can now safetly read the metadata cache without needing to read from the durable catalog making them safe to do without Collection level locks.
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-44276: Change storage engine catalog map to be keyed by RecordId instead of Namespace.</title>
<updated>2019-11-06T16:24:40+00:00</updated>
<author>
<name>Daniel Gottlieb</name>
<email>daniel.gottlieb@mongodb.com</email>
</author>
<published>2019-11-06T16:24:40+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=39c08aceaf7fa15a8e65cf80b09863b452425426'/>
<id>39c08aceaf7fa15a8e65cf80b09863b452425426</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-43367 unittest framework refactor/fixes</title>
<updated>2019-10-02T00:03:00+00:00</updated>
<author>
<name>Billy Donahue</name>
<email>billy.donahue@mongodb.com</email>
</author>
<published>2019-10-02T00:03:00+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=6adefc73b4990253e4f277b49b119db1a05b7490'/>
<id>6adefc73b4990253e4f277b49b119db1a05b7490</id>
<content type='text'>
  - Segregate old-style dbtests into their own Suite initialization
    system: OldStyleSuiteSpecification. This is where the funky
    deprecated features can live on without interfering with the
    Suite API.  It also gives us a searchable base class to identify
    them in the future.

    OldStyleSuite has `setupTests()` and an `add&lt;T&gt;()` that
    Suite does not have.  Suite API can shrink when it doesn't
    have to support these dbtest adaptor features.
    Suite only needs non-template `add(name, callback)`.

  - Add OldStyleSuiteInitializer to some dbtests that were missing it!
    These didn't use SuiteInstance to register themselves and were
    incorrect.  They would self register, resulting in _allSuites()
    holding a std::shared_ptr to a static-duration Suite object!

  - Change `getSuite()` to return `Suite&amp;` instead of `Suite*`.

  - No more "self-registering" in Suite constructor. Registration
    must be done as a separate post-construction step. This removes
    some unusual lifetime management code and is easier to document.
    Suite::getSuite(name) is the only way to make a Suite, and it
    does the make_shared and registration calls with a pseudo-private
    ConstructorEnable idiom.

  - Suite-&gt;run() returns std::unique_ptr&lt;Result&gt; instead of
    raw `Result*`. It's virtual to support OldStyleSuite behavior.

  - Suite._ran does nothing. Removed.

  - Result.cur does nothing. Removed.

  - Switch to pass-by-value and std::move for most ctor args.

  - Add explicit on 1-arg ctors.

  - Get rid of TestHolder. It's just a 2-field struct.

  - use fmt instead of snprintf

  - TEST and TEST_F macros: generate TEST_TYPE once.
  - TEST and TEST_F macros: inline the _agent variable.
  - Mark _doRun as `override`.
  - Terminology: replace CASE_NAME with SUITE_NAME.

  - rename DeathTestImpl -&gt; DeathTestBase
  - move getDeathTestPattern into the test as a static member function

  - refactor out some repetition from the comparator decl macros

  - use if-constexpr and diamond relops to clean up the
    ComparisonAssertion class.

    - dbtests: conditionally skip some add&lt;T&gt; calls

    - further dedup (DEATH_)TEST(_F) macros
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  - Segregate old-style dbtests into their own Suite initialization
    system: OldStyleSuiteSpecification. This is where the funky
    deprecated features can live on without interfering with the
    Suite API.  It also gives us a searchable base class to identify
    them in the future.

    OldStyleSuite has `setupTests()` and an `add&lt;T&gt;()` that
    Suite does not have.  Suite API can shrink when it doesn't
    have to support these dbtest adaptor features.
    Suite only needs non-template `add(name, callback)`.

  - Add OldStyleSuiteInitializer to some dbtests that were missing it!
    These didn't use SuiteInstance to register themselves and were
    incorrect.  They would self register, resulting in _allSuites()
    holding a std::shared_ptr to a static-duration Suite object!

  - Change `getSuite()` to return `Suite&amp;` instead of `Suite*`.

  - No more "self-registering" in Suite constructor. Registration
    must be done as a separate post-construction step. This removes
    some unusual lifetime management code and is easier to document.
    Suite::getSuite(name) is the only way to make a Suite, and it
    does the make_shared and registration calls with a pseudo-private
    ConstructorEnable idiom.

  - Suite-&gt;run() returns std::unique_ptr&lt;Result&gt; instead of
    raw `Result*`. It's virtual to support OldStyleSuite behavior.

  - Suite._ran does nothing. Removed.

  - Result.cur does nothing. Removed.

  - Switch to pass-by-value and std::move for most ctor args.

  - Add explicit on 1-arg ctors.

  - Get rid of TestHolder. It's just a 2-field struct.

  - use fmt instead of snprintf

  - TEST and TEST_F macros: generate TEST_TYPE once.
  - TEST and TEST_F macros: inline the _agent variable.
  - Mark _doRun as `override`.
  - Terminology: replace CASE_NAME with SUITE_NAME.

  - rename DeathTestImpl -&gt; DeathTestBase
  - move getDeathTestPattern into the test as a static member function

  - refactor out some repetition from the comparator decl macros

  - use if-constexpr and diamond relops to clean up the
    ComparisonAssertion class.

    - dbtests: conditionally skip some add&lt;T&gt; calls

    - further dedup (DEATH_)TEST(_F) macros
</pre>
</div>
</content>
</entry>
</feed>
