[SERVER-53406] [causal consistency] Add TTL to extra_validation_keys and clean up expired keys Created: 16/Dec/20  Updated: 29/Oct/23  Resolved: 01/Mar/21

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

Type: Task Priority: Major - P3
Reporter: Jack Mulrow Assignee: Jack Mulrow
Resolution: Fixed Votes: 0
Labels: pm-1791_alpha2, pm-1791_milestone-F
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-53403 [causal consistency] Support validati... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-02-22, Sharding 2021-03-08
Participants:

 Description   

This ticket involves creating a TTL index on the ttlExpiresAt field for documents in the admin.system.external_validation_keys collection and implementing removing deleted keys from the keys cache.

It also involves changing the ttlExpiresAt field to have the behavior from the design, i.e. starts as infinite initially and then changes to the migration deadline plus a buffer when the forgetMigration commands are received.



 Comments   
Comment by Githook User [ 27/Feb/21 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-53406 Add TTL for external keys
Branch: master
https://github.com/mongodb/mongo/commit/f676daac201f886a3994c545f9bb8636e7ed15a0

Comment by Githook User [ 09/Feb/21 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-53406 Store external keys once per migration
Branch: master
https://github.com/mongodb/mongo/commit/7b1502d7288ffea2e1c9fd0d263b305706d9a634

Generated at Thu Feb 08 05:30:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.