Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-65507

LDAP user cache test staleness interval should be relaxed

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc4, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.0, v5.3
    • Security 2022-04-18, Security 2022-05-02
    • 127

      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. 

            Assignee:
            varun.ravichandran@mongodb.com Varun Ravichandran
            Reporter:
            varun.ravichandran@mongodb.com Varun Ravichandran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: