[caclmgrd] Remove sleep which allowed threads to progress (#7475)

Previously, a brief sleep was necessary in order to get Python threads to progress. The root cause of this has since been found and fixed in sonic-swss-common: Azure/sonic-swss-common#477. The submodule was updated here, so we can now safely remove this sleep.

This PR should also be cherry-picked to the 202012 branch once the submodule is updated there to also include the fix.
This commit is contained in:
Joe LeVeque 2021-04-29 11:07:04 -07:00 committed by GitHub
parent 963e7f4c2c
commit 64c3d3a7bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -646,11 +646,6 @@ class ControlPlaneAclManager(daemon_base.DaemonBase):
while True:
ctrl_plane_acl_notification = set()
# A brief sleep appears necessary in this loop or any spawned
# update threads will get stuck. Appears to be due to the sel.select() call.
# TODO: Eliminate the need for this sleep.
time.sleep(0.1)
(state, selectableObj) = sel.select(SELECT_TIMEOUT_MS)
# Continue if select is timeout or selectable object is not return
if state != swsscommon.Select.OBJECT: