[SERVER-83399] [FLE] Cleanup performed over an unsharded tracked collection fails with a StaleConfig error Created: 17/Nov/23  Updated: 21/Dec/23  Resolved: 20/Dec/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Silvia Surroca Assignee: Enrico Golfieri
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-79254 Make CleanupStructuredEncryptionDataC... Closed
is depended on by SERVER-84301 Replace executeCommandAgainstDatabase... Open
is depended on by SERVER-81190 Support tracking "simple" unsharded c... Closed
Problem/Incident
Assigned Teams:
Catalog and Routing
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

import {runEncryptedTest} from "jstests/fle2/libs/encrypted_client_util.js";
 
const st = new ShardingTest({mongos: 1, shards: 2, rs: {nodes: 1}});
 
const dbName = jsTestName();
const db = st.s.getDB(jsTestName());
const collName = 'encrypted';
 
const sampleEncryptedFields = {
    fields: [
        {path: "first", bsonType: "string", queries: {"queryType": "equality", contention: 0}},
        {path: "ssn", bsonType: "string", queries: {"queryType": "equality", contention: 0}},
    ]
};
 
runEncryptedTest(db, dbName, collName, sampleEncryptedFields, (edb, client) => {
    assert.commandWorked(edb.runCommand({createUnsplittableCollection: "coll"}));
    // assert.commandWorked(edb.createCollection("coll")); //< This works fine
    assert.commandFailedWithCode(edb.coll.cleanup(), 6346807);
});
 
st.stop();

Sprint: CAR Team 2023-12-11, CAR Team 2023-12-25
Participants:
Linked BF Score: 156

 Description   

Cleanup performed over an unsharded tracked collection fails with a StaleConfig error when it's expected to fail with 6346807 error (Target namespace is not an encrypted collection)



 Comments   
Comment by Githook User [ 20/Dec/23 ]

Author:

{'name': 'Enrico Golfieri', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-83399 requests for the cleanup/compact coordinator fail with a StaleConfig error if the collection is sharded or unsplittable (#17378)

GitOrigin-RevId: 47e673af1dba5bd9cee9de1b9d67b9bcb0e3880d
Branch: master
https://github.com/mongodb/mongo/commit/c852989eeeadc9dce1d0c6411b44dd45ad8a5b8c

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