[SERVER-65507] LDAP user cache test staleness interval should be relaxed Created: 12/Apr/22 Updated: 29/Oct/23 Resolved: 20/Apr/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0-rc4, 6.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Varun Ravichandran | Assignee: | Varun Ravichandran |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v6.0, v5.3
|
||||||||
| Sprint: | Security 2022-04-18, Security 2022-05-02 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 127 | ||||||||
| Description |
|
The ldap_user_cache_refresher.js test has seen sporadic failures for quite some time now. Since this test uses a locally-running mock server, these failures cannot be explained by external LDAP server slowness. The test currently enforces that it must see cache invalidations within a configurable ldapUserCacheStalenessInterval seconds after the last successful refresh. This sometimes fails because in the worst case scenario, a failed refresh completes at just under ldapUserCacheStalenessInterval seconds. As a result, the server waits another ldapUserCacheRefreshInterval seconds before trying another refresh and only invalidates the cache if that refresh also fails. To temporarily fix this and make the build green, we should relax this interval to be ldapUserCacheStalenessInterval + ldapUserCacheRefreshInterval. Eventually, we should update the behavior of the cache so that it actually performs the invalidation when the ldapUserCacheStalenessInterval is reached. |
| Comments |
| Comment by Githook User [ 29/Apr/22 ] |
|
Author: {'name': 'Varun Ravichandran', 'email': 'varun.ravichandran@mongodb.com', 'username': 'varunravi98'}Message: (cherry picked from commit 3ab0e06aa4452c0d16cc1e7b98a88f447c254404) |
| Comment by Githook User [ 20/Apr/22 ] |
|
Author: {'name': 'Varun Ravichandran', 'email': 'varun.ravichandran@mongodb.com', 'username': 'varunravi98'}Message: |