#1134 Iterator loop reuse cases a tight loop in the native IPA netgroups code
Closed: Fixed None Opened 12 years ago by jhrozek.

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:

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

Fixed in 029e6f1

resolution: => fixed
status: new => closed

Metadata Update from @jhrozek:
- Issue assigned to jhrozek
- Issue set to the milestone: SSSD 1.8 beta

7 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/2176

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata