Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] PIT table issue prevents changelog temp to changelog

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] PIT table issue prevents changelog temp to changelog


Chronological Thread 
  • From: Shilen Patel <>
  • To: Scott Koranda <>
  • Cc: grouper-users <>
  • Subject: Re: [grouper-users] PIT table issue prevents changelog temp to changelog
  • Date: Fri, 18 Jan 2019 18:06:55 +0000
  • Accept-language: en-US
  • Authentication-results: mail-gw.oit.duke.edu; spf=none ; dmarc=none
  • Ironport-phdr: 9a23:sWJqfBZuAwRx1IVWmLf1ZFD/LSx+4OfEezUN459isYplN5qZr86ybnLW6fgltlLVR4KTs6sC17KG9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCa+bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjm58axlVAHnhzsGNz4h8WHYlMpwjL5AoBm8oxBz2pPYbJ2JOPZ7eK7WYNEUSndbXstJVyJPHJ6yb5cBAeQCM+ZXrYfyp1oSohWxCgahH//vxSRNhnPqwaE3yeYsHAfb1wIgBdIOt3HUoc3oOqcSUOC1yLfHzTPeZP1Mwzj99JbHchQ8qvyLRrJwccvRyU0xGAPDlViftJHlPzCL2egXrWeU8vdgWPuphmU6qA9xuiCiytosh4XXnI4YxErI+Th6zYsxP9G0VkB2bcC8HJdNtyyWKZF6T804T2xmtys20LMLtYa1fCcUy5kr2xvSZvmaf4WL+B3uVuOcLDd2iX9kZb2ygha//lSkx+D5TMa4zE1FojZDn9LRrH4CzQbT5dKCSvZl/keuxzKP1wfL5+FBO080lK7bJ4cuwr8+j5YfrUXOEjXxmEX3kK+abFgr+vWr6+v5eLnpuIKTN5JshgH/NKQhhNC/DPwlPgUOQWSX4+qx2Kf+8UD6RLhGlOM6n6fHvJzCIMQUvK+5Awtb0oY57Ba/Ci+r0M8YnXkGKFJKZhSHgpP0NFHTI/D3E+2zjEqxnzd23/zGJKHuAo3RLnjfl7fsZbl961RbyAou1dBQ+YhUBqgcIPLoREDxrsfYAwQ9Mwy12ObnFM592p0EVWKOBK+ZLL3dsUWO5u0xP+mAepUZtyjgJPg4tLbSiioCklgBYeGK2oEebnyxVqB9IEKDaHzgi/8OFG4Lukw1S+m823OYVjsGXHazW686rgkyFI+iRdPYRoGpjbqp0Dq4E9tban0QWQPEKmvha4jRA6REUymVOMI012VcDeL7GYY8yRGjshP7wLN7L+3SvzcVro/nyMMqub/WnBA2sDNrScOczyeBUmJ52G4EWmxTvsFkuUIozFCF3OBjhuBAU9la5vdHSAA/YIXczuh3Dfj+RwHMONqFVQXDILSqBDgrRYc3xNkDbg==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

That method looks for duplicates and tries to delete the newest one (with the
assumption that the oldest one is more likely to be used). But it’s possible
that the one it tried to delete has foreign keys instead. (Hopefully they
both don’t have foreign keys.) Your logs should confirm that assumption.

If that’s correct, then query the table:

select * From grouper_pit_members where
source_id='ca99ceee00b44698b407c8ced5a8bddb' and active='T'

You should find 2 (or maybe more) rows. Delete the one that isn’t
id=639e1720af7f48c38d1940f63f4d4b7d.

See if that resolves it? If they both managed to get foreign keys, then it
gets a bit more complicated. I think you’d have to go through the references
and update from one to the other.

Thanks!

- Shilen

On 1/18/19, 12:52 PM, "Scott Koranda"
<>
wrote:

> Try running this via gsh:
>
>
> new
edu.internet2.middleware.grouper.misc.SyncPITTables().processDuplicates(GrouperDAOFactory.getFactory().getPITMember())
>

Thanks.

I saw this:

groovy:000> new
edu.internet2.middleware.grouper.misc.SyncPITTables().processDuplicates(GrouperDAOFactory.getFactory().getPITMember())


Hib3PITMemberDAO: Searching for point in time duplicates
Found 1 entries that have duplicates in point in time.
Found duplicate PIT record with
sourceId=ca99ceee00b44698b407c8ced5a8bddb, id=639e1720af7f48c38d1940f63f4d4b7d
Done making updates but there were 1 errors. See logs for details.
===> 1

How should I proceed?

Thanks,

Scott K





Archive powered by MHonArc 2.6.19.

Top of Page