Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-1683

PSPNG Group Provisioning - Full Sync cleanup

    XMLWordPrintable

Details

    Description

      LdapGroupProvisioner.fetchTargetSystemGroups is written to only handle a single batch-sized list of groups. However, the FullSync provisioner calls it with all the groups defined for the provisioner.

       

      This leads to:

      [From Feb 2017 grouper-users list]

      > I have an LdapGroupProvisioner configured with grouperIsAuthoritative
      > set to true. It was working fine in my test stem that has a whopping 12
      > groups in it. Once I tried to attach the provisioner to a larger stem
      > however, I started to hit an error during group cleanup saying there
      > were too many groups to fetch.
      >
      > Poking around the code, it seems to be generated by the
      > fetchTargetSystemGroups call when the number of groups in the
      > provisioning item is larger than groupSearch_batchSize. I confirmed that
      > by going back to just my test stem and dialing down the batch size to
      > 10. Sure enough, I get the same error now. Stack trace below:
      >
      > 2017-02-27 15:21:52,500: [pspng_groupOfUniqueNames-FullSync] ERROR
      > FullSyncProvisioner.processGroupCleanup(356) -  -
      > pspng_groupOfUniqueNames: Problem doing group cleanup
      > java.lang.IllegalArgumentException:
      > LdapGroupProvisioner.fetchTargetSystemGroups: invoked with too many
      > groups to fetch
      >        at
      > edu.internet2.middleware.grouper.pspng.LdapGroupProvisioner.fetchTargetSystemGroups(LdapGroupProvisioner.java:290)
      >        at
      > edu.internet2.middleware.grouper.pspng.Provisioner.doFullSync_cleanupExtraGroups(Provisioner.java:994)
      >        at
      > edu.internet2.middleware.grouper.pspng.FullSyncProvisioner.processGroupCleanup(FullSyncProvisioner.java:347)
      >        at
      > edu.internet2.middleware.grouper.pspng.FullSyncProvisioner.thread_manageFullSyncProcessing(FullSyncProvisioner.java:180)
      >        at
      > edu.internet2.middleware.grouper.pspng.FullSyncProvisioner$1.run(FullSyncProvisioner.java:132)
      >        at java.lang.Thread.run(Thread.java:745)
      >
      >
      > The groupSearch_batchSize defaults to 50. It doesn't seem right to bump
      > the batch size up to be greater than my total number of groups in any
      > given provisioning item, which can number in the thousands.
      >
      > Has anyone else seen this?
      >
      >  -paul
      >
      >
      > –
      > Paul Engle
      > Office of Information Technology
      > pengle@rice.edu
      > 713-348-4702

      Attachments

        Issue Links

          Activity

            People

              bert.beelindgren@at.internet2.edu Bert Bee-Lindgren
              bert.beelindgren@at.internet2.edu Bert Bee-Lindgren
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: