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
|
}
|
}
|