Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: Running in to problem with PITUtils.deleteInactiveRecords

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: Running in to problem with PITUtils.deleteInactiveRecords


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: James Babb <>, " Mailing List" <>
  • Subject: [grouper-users] RE: Running in to problem with PITUtils.deleteInactiveRecords
  • Date: Tue, 3 Apr 2018 18:05:56 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:RbDzlxCI4Ka2khT/WeWAUyQJP3N1i/DPJgcQr6AfoPdwSP37pcqwAkXT6L1XgUPTWs2DsrQY07GQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDSwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VC+85Kl3VhDnlCYHNyY48G7JjMxwkLlbqw+lqxBm3oLYfJ2ZOP94c6jAf90VWHBBU95RWSJfH428c4UBAekPPelaronyu1QBoACkCgWwGO/i0CNEimP00KA8zu8vERvG3AslH98WvnjartX0NaYMXuCv1KXD0CvOb/NM2Tf884jEfA0qrPaJXb1sccrQyUguGB3fjliLqIzlJC+a2v4Qs2iD8eVgU+Svh3Q5pA5svzii38EhgZTKiIIN0l3I6z92zJooKdC9VUJ3fMOoHZ5etyyVK4d6XsYvTmN2tys11LELvJu2cDYWxJg53xLTdvKKf5SS7h/nSeqdOyl0iG9hdb6lmhq/80mtxvXyVsaq01tGsi9In9zMu30JzRPc9M2KR/hh8Ui/3TuC0hzc5fxeLkwpkKfWJJoszqA/m5cVrE/NBDX5mF/sg6+Tbkgk+van6+DgYrj+vpGRK4h6hh3jPqg3h8GwA/o0PhEJX2eA5+uwzrrj/VDlQLpRif02j6/Zv43AKcQDvK65BBNV3Zg/5BajDjem19IYkWMALFJYZBKHi4/pO1bNIPziEfi/hFGsnC9qx/DAILLhHo3AImbZn7v9YLpw7lNQxBcuwd1a6ZJZBa0NLO72V0LzqtPVAQE1Pgmxzur5FNlxyJsSWWeVDa+YNKPSv0WI5uUqI+SUYY8apDb9Kvgk5vHwl380gl4dfbK10pcNdXC4BuppI0OfYXb2nNgODHoKshIkTOP2kF2CTSJTZ3GqUqIz/DE7D5+mDZ/dSYC3mbCBwTy7EYNMZmBdEV2MFXbod56YW/cXdi6eOM5hkjoYVbe/UY8h0w+htBPkx7Z9MOXb5zAY5trf041X7ujejlkY/DZ+R5Cf2mSAVCd+l2kCbyA3x6s5rEBgnBPLm6dihOFAGMYW+uhESBwSNJjAwvZ8BsyoHA/NY5+sQVeiQ9OpSRUwVc57i4sBeUFgA9i4yw3Y0jCxK74Ti7GRApEoqOTR02WndOhnzHOTnokwnVQ8BoNkNXenneQ3ow3YB5/bnl+xlr2hM7kE0SjLsmqP0Dzd7wljTAdsXPCdDjgkbUzMoIG8vxuaQg==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Fixed in patch: grouper_v2_3_0_api_patch_99

 

Thanks

Chris

 

From: [mailto:] On Behalf Of James Babb
Sent: Tuesday, April 03, 2018 8:05 AM
To: Mailing List <>
Subject: [grouper-users] Running in to problem with PITUtils.deleteInactiveRecords

 

I am running in to a foreign key constraint when deleteInactiveRecords gets to the PITGroupSet purge step:

 

groovy:000> edu.internet2.middleware.grouper.pit.PITUtils.deleteInactiveRecords(new Date(time), true);

Done deleting 0 attributeAssignValues from point in time that ended before: 2016-04-02 21:18:13.336

Done deleting 0 roleSets from point in time that ended before: 2016-04-02 21:18:13.336

Done deleting 0 attributeAssignActionSets from point in time that ended before: 2016-04-02 21:18:13.336

Done deleting 0 attributeAssigns from point in time that ended before: 2016-04-02 21:18:13.336

Done deleting 0 attributeAssignActions from point in time that ended before: 2016-04-02 21:18:13.336

Done deleting 0 attributeDefNameSets from point in time that ended before: 2016-04-02 21:18:13.336

Done deleting 0 attributeDefNames from point in time that ended before: 2016-04-02 21:18:13.336

Done deleting 0 memberships from point in time that ended before: 2016-04-02 21:18:13.336

ERROR edu.internet2.middleware.grouper.internal.dao.GrouperDAOException:

Problem in HibernateSession: HibernateSession (5d8d0a4): new, notReadonly, READ_WRITE_NEW, notActiveTransaction, session (82e65ec),

Exception in executeUpdate: ByHqlStatic, query: 'delete from PITGroupSet where id in (:TPTBKTZM0, :TPTBKTZM1, :TPTBKTZM2, :TPTBKTZM3, :TPTBKTZM4, :TPTBKTZM5, :TPTBKTZM6, :TPTBK

TZM7, :TPTBKTZM8, :TPTBKTZM9, :TPTBKTZM10, :TPTBKTZM11, :TPTBKTZM12, :TPTBKTZM13, :TPTBKTZM14, :TPTBKTZM15, :TPTBKTZM16, :TPTBKTZM17, :TPTBKTZM18, :TPTBKTZM19, :TPTBKTZM20, :TP

TBKTZM21, :TPTBKTZM22, :TPTBKTZM23, :TPTBKTZM24, :TPTBKTZM25, :TPTBKTZM26, :TPTBKTZM27, :TPTBKTZM28, :TPTBKTZM29, :TPTBKTZM30, :TPTBKTZM31, :TPTBKTZM32, :TPTBKTZM33, :TPTBKTZM3

4, :TPTBKTZM35, :TPTBKTZM36, :TPTBKTZM37, :TPTBKTZM38, :TPTBKTZM39, :TPTBKTZM40, :TPTBKTZM41, :TPTBKTZM42, :TPTBKTZM43, :TPTBKTZM44, :TPTBKTZM45, :TPTBKTZM46, :TPTBKTZM47, :TPT

BKTZM48, :TPTBKTZM49, :TPTBKTZM50, :TPTBKTZM51, :TPTBKTZM52, :TPTBKTZM53, :TPTBKTZM54, :TPTBKTZM55, :TPTBKTZM56, :TPTBKTZM57, :TPTBKTZM58, :TPTBKTZM59, :TPTBKTZM60, :TPTBKTZM61

, :TPTBKTZM62, :TPTBKTZM63, :TPTBKTZM64, :TPTBKTZM65, :TPTBKTZM66, :TPTBKTZM67, :TPTBKTZM68, :TPTBKTZM69, :TPTBKTZM70, :TPTBKTZM71, :TPTBKTZM72, :TPTBKTZM73, :TPTBKTZM74, :TPTB

KTZM75, :TPTBKTZM76, :TPTBKTZM77, :TPTBKTZM78, :TPTBKTZM79, :TPTBKTZM80, :TPTBKTZM81, :TPTBKTZM82, :TPTBKTZM83, :TPTBKTZM84, :TPTBKTZM85, :TPTBKTZM86, :TPTBKTZM87, :TPTBKTZM88,

:TPTBKTZM89, :TPTBKTZM90, :TPTBKTZM91, :TPTBKTZM92, :TPTBKTZM93, :TPTBKTZM94, :TPTBKTZM95, :TPTBKTZM96, :TPTBKTZM97, :TPTBKTZM98, :TPTBKTZM99)', cacheable: null, cacheRegion:

null, tx type: null, tx type: nullBind var[0]: 'Param (class java.lang.String): 'TPTBKTZM0'->'8bcdbc8364074e63a95ea51532fde76b', Bind var[1]: 'Param (class java.lang.String): '

TPTBKTZM1'->'6565e202ce7e45caad895274b4c8d8d4', Bind var[2]: 'Param (class java.lang.String): 'TPTBKTZM2'->'54a8ef39b5fc4836af423b1b237592d4', Bind var[3]: 'Param (class java.l

ang.String): 'TPTBKTZM3'->'91a1a79a39cb4debb7fee4d03602dac6', Bind var[4]:...Bind var[97]: 'Param (class java.lang.String): 'TPTBKTZM97'->'0ee7a5e49dd74125a3b82e47d5759cb3', Bind var[98]: 'Param (class java.lang.String): 'TPTBKTZM98'->'d74d03a2b36a469a806216d35ec658eb'Bind var[99]: 'Param (class java.lang.String): 'TPTBKTZM99'->'8cd18ca2bea649f0bd886a9908783b6d',

        at edu.internet2.middleware.grouper.hibernate.HibernateSession._internal_hibernateSessionCatch (HibernateSession.java:589)

        at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession (HibernateSession.java:711)

        at edu.internet2.middleware.grouper.hibernate.ByHqlStatic.executeUpdateInt (ByHqlStatic.java:583)

        at edu.internet2.middleware.grouper.hibernate.ByHqlStatic.executeUpdate (ByHqlStatic.java:564)

        at edu.internet2.middleware.grouper.hibernate.ByHqlStatic.deleteInBatches (ByHqlStatic.java:541)

        at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3PITGroupSetDAO.deleteInactiveRecords (Hib3PITGroupSetDAO.java:415)

        at edu.internet2.middleware.grouper.pit.PITUtils.deleteInactiveRecordsHelper (PITUtils.java:125)

        at edu.internet2.middleware.grouper.pit.PITUtils.deleteInactiveRecords (PITUtils.java:61)

        at edu.internet2.middleware.grouper.pit.PITUtils$deleteInactiveRecords.call (Unknown Source)

 

---leads to---

 

2018-04-03 06:32:26,061: [main] WARN  SqlExceptionHelper.logExceptions(127) -  - SQL Error: 2292, SQLState: 23000

2018-04-03 06:32:26,062: [main] ERROR SqlExceptionHelper.logExceptions(129) -  - ORA-02292: integrity constraint (GROUPERTST.FK_PIT_GS_PARENT_ID) violated - child record found

 

---leads to---

 

CONSTRAINT "FK_PIT_GS_PARENT_ID" FOREIGN KEY ("PARENT_ID") REFERENCES "GROUPERTST"."GROUPER_PIT_GROUP_SET" ("ID") ENABLE

 

---

 

Wondering if there is a specific order that records in PIT_GROUP_SET must be deleted?

 

Thanks all!

 

-- 

James Babb

Identity Management Lead

Division of Information Technology

University of Wisconsin-Madison

 




Archive powered by MHonArc 2.6.19.

Top of Page