[SERVER-32702] dbtest indexupdate hits a bug while creating index on mobile SE Created: 15/Jan/18  Updated: 30/Oct/23  Resolved: 30/Jan/18

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 3.7.2

Type: Bug Priority: Major - P3
Reporter: Sulabh Mahajan Assignee: Neha Khatri
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Storage 2018-01-29
Participants:

 Description   

dbtest indexupdate hits the issue: Invariant failure !dupsAllowed
For now I am skipping this test from running in mobile variant on evergreen.

Once this bug is fixed, dbtest indexupdate should be made to run with mobile SE.



 Comments   
Comment by Sulabh Mahajan [ 01/Feb/18 ]

I confirm that the tests that were skipped for this ticket have been untagged and should run now.

Comment by Githook User [ 30/Jan/18 ]

Author:

{'email': 'neha.khatr@mongodb.com', 'name': 'nehakhatri5'}

Message: SERVER-32702 Disable the tests that ignore unique constraint, for Mobile SE

Mobile storage engine does not support replication hence does not allow
duplicate keys in unique index. But some tests explicitly ignore unique
constraint by setting the index option dupsAllowed. For Mobile SE these tests
can be excluded.
Branch: master
https://github.com/mongodb/mongo/commit/c36a8813e95956ff14f02de028c8b314e5eea6d8

Comment by Neha Khatri [ 24/Jan/18 ]

The tests InsertBuildIgnoreUnique<true> and InsertBuildIgnoreUnique<false> in the indexupdatetests.cpp call indexer.ignoreUniqueConstraint() which causes the dupsAllowed option to be set to true for the index being created as shown:

    void ignoreUniqueConstraint() override {
        _ignoreUnique = true;
    }

index.options.dupsAllowed = index.options.dupsAllowed || _ignoreUnique;

Since Mobile SE does not support replication, it has the invariant check for dupsAllowed which fails for the above two tests. The above two tests are not valid for Mobile SE as it does not allow duplicate key in unique index. The specific two tests can disabled for Mobile storage engine.

Generated at Thu Feb 08 04:31:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.