Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] SQLIntegrityConstraintViolationException from one of the loader jobs

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] SQLIntegrityConstraintViolationException from one of the loader jobs


Chronological Thread 
  • From: Shilen Patel <>
  • To: Kumi Hagimoto <>, "" <>
  • Subject: Re: [grouper-users] SQLIntegrityConstraintViolationException from one of the loader jobs
  • Date: Sun, 29 Jan 2017 12:16:23 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:M3bk4B9nKNV8//9uRHKM819IXTAuvvDOBiVQ1KB+0u4QIJqq85mqBkHD//Il1AaPBtSHrawcwLOM6ujJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fdbghMizexe7J/IAm5oQnMqMUanJZpJ7osxBfOvnZGYfldy3lyJVKUkRb858Ow84Bm/i9Npf8v9NNOXLvjcaggQrNWEDopM2Yu5M32rhbDVheA5mEdUmoNjBVFBRXO4QzgUZfwtiv6sfd92DWfMMbrQ704RSiu4qF2QxLzliwJKyA2/33WisxojaJUvhShpwBkw4XJZI2ZLedycr/Bcd8fQ2dKQ8RfWDFbAo6kb4UBEfcPPfpWoYf+qVsBrxWxBQiwC+3gxTBFnWP23bQg3ug9DQ3LxhIsEtQTu3rUttX1M6ISXPiowqnIzDXDa+1Z2THg44bSaB8hve+DXbZtesfW0kkvFwLFjlGOpozjJD6ay/kNs2uF4OZ6S+2glnMnphh3rzOyyMksjYzJiZgUylDC7Sh224Y0JdqjR055f9GrDIdQtzqGN4RsXsMiQn1ntDwhyrIcp560YjAGyJs9xx7YdvyHa5aH4gj5WOmLOTd4nGppeK6/hxao70ev0PDzWtOu0FZXqCpJitnMtnEW2BHd78iIVP598Vy/1jaVzADT6uBEIVgpmqXBLJ4t2KUwmYANsUvdBiP2l1/2jKiLdkU85Oeo8fjoba/ipp+YLYB7kQX+Pbo0lsOjG+s4NgwOU3CA9uW8073s5k/5T6tWgf0qiKXZq4rVJdoFqaKhDQ9Vz5oj6wulDzi4zNQXh2IHLFFfdBKdkojpPVfDK+37A/enm1mgjTdmy+7cMrDvGJnBM3vOnbP7cbpj5UNQ1RI/wc1R6p9VEL0MIPP+VlXsuNDGFBM1LgK5z/j/BNljy48TWHiDD6GHPK/IrFOF5f8jL/ORaIIXuTvwLeUu6eT0gn8jg1AdeLGk3ZsJZ3C8GfRrO0CZbmDtgtcFCGsKsQQ/QPX2hFCCSzJTYHeyX74m6j4mFYKmDpnMSpqzj7OcwSe3BpxWZmZYBVCQCXrkaoWJV+kWZC+cOMNtjz8JWLy7R4M/2xyiqRf2y799IerV/i0Yu4jj1N9w5+DLjhEy9T10D8CD3GGLVGx7g34IRzwo06xlv0Ny10qD3bBig/NEDdxT++9JUgAiOJ7T1ex6DM3yWhrfcdeTUVqmX86mDi8rTtIq2NIOZ0d9G86+jhDYwSamGb4Vl7qXBJMq6KLc2Wb+J9pjx3rcyqYukkQmEYNzMjiFm6t+vyjaCI/MlFme3/KpaKEdmi7E+2aGynaJlEZCXQF3V77ZVGwSIEbasIK9rgnNVbizEbk9dxZaxNSZAqpMdtDzi1haHrHuNMmUKza+gWCtHRuSg66XYZDxU2QbwCjHDkUYyUYe8WvQZiYkASL0mGLfCDFoXWrmf07oub1lqHK/Q0kcwxyJYgts26fjqU1dvuCVV/5GhuFMgywmsTghWQ/lh98=
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

API patch 55 includes a change such that the exception will be logged at
an INFO level instead of ERROR level if it's going to be retried. If it
fails during the retry, it'll be logged as ERROR.

Thanks!

- Shilen

On 1/18/17, 5:59 AM, "Shilen Patel"
<>
wrote:

>Hi,
>
>Since the loader runs multiple threads and adds multiple memberships at
>the same time, this can happen if there are two membership adds happening
>in two different threads at about the same time where each direct
>membership individually would produce the same composite membership. I'm
>guessing that's what happened here. Also note that the loader will retry
>membership updates that fail so if you didn't get another error in the log
>and the job itself didn't fail in the end, then you should be okay.
>
>Thanks!
>
>- Shilen
>
>On 1/17/17, 3:56 PM, "Kumi Hagimoto"
><>
>wrote:
>
>>Hi,
>>
>>We got the following error message in the log over the weekend trying to
>>add
>>membership via a sql loader job. It's only happened this one time in the
>>past
>>week, so I don't know if there's a pattern yet. I did look at the loader
>>source table to make sure we had unique set of data. Has anyone
>>encountered
>>this error? Any pointers are appreciated.
>>
>>Thanks,
>>Kumi
>>
>>java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique
>>constraint (GROUPER.MEMBERSHIP_UNIQ_IDX) violated
>>
>> at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:459)
>> at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:400)
>> at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:999)
>> at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:539)
>> at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:235)
>> at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:543)
>> at
>>oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java
>>:
>>239)
>> at
>>oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStateme
>>n
>>t.ja
>>va:1448)
>> at
>>oracle.jdbc.driver.OraclePreparedStatement.executeForRowsWithTimeout(Orac
>>l
>>ePre
>>paredStatement.java:17722)
>> at
>>oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedSta
>>t
>>emen
>>t.java:17849)
>> at
>>oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWra
>>p
>>per.
>>java:785)
>> at
>>com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyP
>>r
>>epar
>>edStatement.java:2544)
>> at
>>org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(B
>>a
>>tchi
>>ngBatch.java:110)
>> at
>>org.hibernate.engine.jdbc.batch.internal.BatchingBatch.doExecuteBatch(Bat
>>c
>>hing
>>Batch.java:97)
>> at
>>org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.execute(Abstra
>>c
>>tBat
>>chImpl.java:147)
>> at
>>org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.executeBatch(JdbcC
>>o
>>ordi
>>natorImpl.java:214)
>> at
>>org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:589)
>> at
>>org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:434)
>> at
>>org.hibernate.event.internal.AbstractFlushingEventListener.performExecuti
>>o
>>ns(A
>>bstractFlushingEventListener.java:337)
>> at
>>org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlu
>>s
>>hEve
>>ntListener.java:39)
>> at
>>org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1224)
>> at
>>edu.internet2.middleware.grouper.hibernate.ByObject.save(ByObject.java:22
>>1
>>)
>> at
>>edu.internet2.middleware.grouper.hibernate.ByObjectStatic$7.callback(ByOb
>>j
>>ectS
>>tatic.java:494)
>> at
>>edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHiber
>>n
>>ateS
>>ession(HibernateSession.java:700)
>> at
>>edu.internet2.middleware.grouper.hibernate.ByObjectStatic.save(ByObjectSt
>>a
>>tic.
>>java:481)
>> at
>>edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MembershipDAO.save
>>(
>>Hib3
>>MembershipDAO.java:2077)
>> at
>>edu.internet2.middleware.grouper.Membership.fixComposites(Membership.java
>>:
>>2272
>>)
>> at
>>edu.internet2.middleware.grouper.Membership.processPostMembershipSaveOrUp
>>d
>>ate(
>>Membership.java:2173)
>> at
>>edu.internet2.middleware.grouper.Membership.onPostSave(Membership.java:19
>>9
>>7)
>> at
>>edu.internet2.middleware.grouper.hibernate.ByObject.save(ByObject.java:22
>>4
>>)
>> at
>>edu.internet2.middleware.grouper.hibernate.ByObjectStatic$7.callback(ByOb
>>j
>>ectS
>>tatic.java:494)
>> at
>>edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHiber
>>n
>>ateS
>>ession(HibernateSession.java:700)
>> at
>>edu.internet2.middleware.grouper.hibernate.ByObjectStatic.save(ByObjectSt
>>a
>>tic.
>>java:481)
>> at
>>edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MembershipDAO.save
>>(
>>Hib3
>>MembershipDAO.java:2077)
>> at
>>edu.internet2.middleware.grouper.Membership.internal_addImmediateMembersh
>>i
>>p(Me
>>mbership.java:1246)
>> at
>>edu.internet2.middleware.grouper.Group$4.callback(Group.java:1392)
>> at
>>edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHiber
>>n
>>ateS
>>ession(HibernateSession.java:700)
>> at
>>edu.internet2.middleware.grouper.Group.internal_addMember(Group.java:1364
>>)
>> at
>>edu.internet2.middleware.grouper.Group.addMember(Group.java:938)
>> at
>>edu.internet2.middleware.grouper.Group.addMember(Group.java:857)
>> at
>>edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.syncOneMemb
>>e
>>rAdd
>>MemberLogic(GrouperLoaderType.java:4159)
>> at
>>edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.access$400(
>>G
>>roup
>>erLoaderType.java:118)
>> at
>>edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$12$2.callLo
>>g
>>ic(G
>>rouperLoaderType.java:2647)
>> at
>>edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$12$2.callLo
>>g
>>ic(G
>>rouperLoaderType.java:2643)
>> at
>>edu.internet2.middleware.grouper.util.GrouperCallable$1.callback(GrouperC
>>a
>>llab
>>le.java:164)
>> at
>>edu.internet2.middleware.grouper.GrouperSession.callbackGrouperSession(Gr
>>o
>>uper
>>Session.java:974)
>> at
>>edu.internet2.middleware.grouper.util.GrouperCallable.callLogicWithSessio
>>n
>>IfEx
>>ists(GrouperCallable.java:161)
>> at
>>edu.internet2.middleware.grouper.util.GrouperCallable.call(GrouperCallabl
>>e
>>.jav
>>a:132)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> at
>>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java
>>:
>>1145
>>)
>> at
>>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav
>>a
>>:615
>>)
>> at java.lang.Thread.run(Thread.java:745)
>




Archive powered by MHonArc 2.6.19.

Top of Page