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

Fix retry loop in jstests/external_auth/lib/ldap_container.py

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • ALL
    • 200

      The retry loop never increases the retry counter so the loop runs forever.

      diff --git a/src/mongo/db/modules/enterprise/jstests/external_auth/lib/ldap_container.py b/src/mongo/db/modules/enterprise/jstests/external_auth/lib/ldap_container.py
      index f74e358a447..42982b10e4f 100644
      --- a/src/mongo/db/modules/enterprise/jstests/external_auth/lib/ldap_container.py
      +++ b/src/mongo/db/modules/enterprise/jstests/external_auth/lib/ldap_container.py
      @@ -82,8 +82,11 @@ def _build_image(image_name: str) -> bool:
                   ]
               )
       
      +        retry += 1
      +
               if ret == 0:
                   return True
      +
           return False
       

            Assignee:
            Unassigned Unassigned
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: