Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterator loop reuse cases a tight loop in the native IPA netgroups code #2176

Closed
sssd-bot opened this issue May 2, 2020 · 0 comments
Closed
Assignees
Labels
Bugzilla Closed: Fixed Issue was closed as fixed.

Comments

@sssd-bot
Copy link

sssd-bot commented May 2, 2020

Cloned from Pagure issue: https://pagure.io/SSSD/sssd/issue/1134


https://bugzilla.redhat.com/show_bug.cgi?id=772163

Description of problem:
When the same netgroup is requested twice, the getent request seemingly pauses
and then only returns the data from cache.

This is caused by an iterator variable reused in inner loop in the code.

Version-Release number of selected component (if applicable):
-66

How reproducible:
always

Steps to Reproduce:
1. on an IPA server, add a netgroup. Mine looks like this:
$ ipa netgroup-show testngr
  Netgroup name: testngr
  Description: a test netgroup
  NIS domain name: idm.lab.bos.redhat.com
  Member User: foobar

2. on the client, set a low entry_cache_timeout to force requests to go to the
server.
3. run getent netgr testngr. Results show up.
4. run it again,

Actual results:
The second invocation will pause for a moment and then fall back to cached data
(which can be verified by adding another member user on the server)

Expected results:
No pause and up to date data is returned

Additional info:

Comments


Comment from dpal at 2012-01-12 15:09:54

Fields changed

blockedby: =>
blocking: =>
coverity: =>
milestone: NEEDS_TRIAGE => SSSD 1.7.91 (1.8.0 beta 1)
owner: somebody => jhrozek
patch: => 0
tests: => 0
testsupdated: => 0
upgrade: => 0


Comment from jhrozek at 2012-01-16 09:38:59

Fixed in 029e6f1

resolution: => fixed
status: new => closed


Comment from jhrozek at 2017-02-24 15:02:22

Metadata Update from @jhrozek:

  • Issue assigned to jhrozek
  • Issue set to the milestone: SSSD 1.8 beta
@sssd-bot sssd-bot added Bugzilla Closed: Fixed Issue was closed as fixed. labels May 2, 2020
@sssd-bot sssd-bot closed this as completed May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugzilla Closed: Fixed Issue was closed as fixed.
Projects
None yet
Development

No branches or pull requests

2 participants