[MONGOCRYPT-317] listCollections is repeatedly requested when no JSON schema is configured Created: 12/Apr/21 Updated: 28/Oct/23 Resolved: 03/Sep/21 |
|
| Status: | Closed |
| Project: | Libmongocrypt |
| Component/s: | C library |
| Affects Version/s: | None |
| Fix Version/s: | 1.2.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kevin Albertson | Assignee: | Kevin Albertson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | rp-track | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||
| Description |
|
Automatic encryption unnecessarily requests listCollections on a collection with no JSON schema configured. libmongocrypt checks if a collection has a JSON schema configured by doing the following: libmongocrypt will cache the response for a collection that does not have a JSON schema configured. However, the check for a cached response does not account for collections that have no schema configured. The absense of a configured schema should still be cached. This results in drivers repeatedly requesting listCollections unnecessarily. |
| Comments |
| Comment by Githook User [ 03/Sep/21 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message: |
| Comment by Kevin Albertson [ 02/Sep/21 ] |
| Comment by Esha Bhargava [ 19/Apr/21 ] |
|
|