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

obliterate stem endless loop if already deleted

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.1, 2.4.0, 2.3.0.patch
    • API
    • None

    Description

      I think if you call obliterate with point in time and you the stem doesnt exist, this is an endless loop. Should see if grouper daemon has processed?

      obliterateStem.invoke(grouperSession, "penn:community:student:course:2007C", false, true);
      

            while (true) {
              if (ns != null) {
                PITStem pitStem = GrouperDAOFactory.getFactory().getPITStem().findBySourceIdUnique(ns.getUuid(), false);
                if (pitStem != null && !pitStem.isActive()) {
                  break;
                }
              } else {
                Set<PITStem> pitStems = GrouperDAOFactory.getFactory().getPITStem().findByName(name, false);
                if (pitStems.size() > 0 && !pitStems.iterator().next().isActive()) {
                  break;
                } 
              }
              
              System.out.println("Waiting for Grouper Daemon to process before obliterating from point in time data.  This is expected to take a few minutes.  Be sure the Grouper Daemon is running.");
              try {
                Thread.sleep(15000);
              } catch (InterruptedException e) {
                // ignore
              }
            }
      

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist