Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] StaleObjectStateException thrown by loader jobs after patch

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] StaleObjectStateException thrown by loader jobs after patch


Chronological Thread 
  • From: Scott Koranda <>
  • To: "Hyzer, Chris" <>
  • Cc: grouper-users <>
  • Subject: Re: [grouper-users] StaleObjectStateException thrown by loader jobs after patch
  • Date: Thu, 15 Feb 2018 11:15:52 -0600
  • Ironport-phdr: 9a23:FqsW+BWu0nQ7+DDD6gaZqaHcN3vV8LGtZVwlr6E/grcLSJyIuqrYbBSCt8tkgFKBZ4jH8fUM07OQ7/i7HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba98IRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KptVRTmijoINyQh/W/ZisJ+kr9VrhGvpxNw34HbfYOaO/Rlc6PBYd8XX3ZNUtpLWiBfBI63cosBD/AGPeZdt4TzukcBrRyiBQmwGejhzzhIhmXs0q08zusuCxzN0Qs7H9INt3TUts/6NKEPXu+v16TIwjDDYOlX2Tf58oTHbhchofSVUL92bMHfylEvGhvbgliRtYDoPTaY1uoOvmeA8+ZtUO2ih3I7pw1spzWg2tsghZLMi48Q1FzJ+zt1zJ4oKdC2SUN3e8OoHZpSui2AOYZ7Q9kuT392tCs4zLANpIS1czIQyJs9wh7Sc/yHfJaM4hLkTOuRJC13hHNheL6mhhay7VSsxvTzV8Wq3ltGsDBJktbLtnAK2BzT7taIRuFh8Uem3DaDzwHT6udaLkAojafXNZ8szqIym5cWv0TOHTT5lFnzgaKZakko5vWk5uH7bbn6vZCRMop5hh/wP6gwgsC/BP43MgkKX2iV4+S807jj8FXiQLVJif02iLPWsJbHKssBvaO5DApV3Zwi6xa7FTupzNMYnXwfIFJfZB2Hl5TpO03JIP3gAve/mVOskCpzx//YJL3tG4jNLmPdn7f7ZrZw8EpcyAsozdBD/JJYFKsNIPP1Wk/tqtPYFBk5PBKow+r5EtlyyJ4RWX/cSpOeZenyoE2F/KZnCOmWZZRf8GL4IPg09fP0pX4ikhkAZaSv290aZG3uTdp8JEDMWnHrnstJMmAQtwwyRaS+k16FSzdVa3+aUKc15zV9A4WjW9SQDruxiaCMiX/oVqZdYXpLXwiB

> There are no new rows for this patch, but there were a few attribute
> assignments added to loaded groups from a previous patch. There are
> no audits or point in time associated with the attributes which change
> each time the loader runs for the job in this patch. We have worked
> hard to make sure this is as lightweight as possible and Grouper
> assumes they are there. Added some metadata on groups is not on my
> radar as something that needs to be optional for performance reasons.
> Ok? :)

I think there is an issue, however, that will impact performance right
after the patching.

After patching and starting up the loader I see a couple of million new
rows added to GROUPER_CHANGE_LOG_ENTRY_TEMP. Those rows include things
like 'etc:attribute:loaderMetadata:grouperLoaderMetadataLoaded' and
'etc:attribute:loaderMetadata:grouperLoaderMetadataLastFullMillisSince1970'.

Since all of those rows have to be processed and moved from
GROUPER_CHANGE_LOG_ENTRY_TEMP to GROUPER_CHANGE_LOG, and then the
various change log consumers have to process each of those rows, any
"real" changes in group memberships are not going to be processed for
quite some time.

My plan to avoid this is:

- make sure all "real" work is processed
- stop the loader
- delete loader jobs
- patch
- start the loader
- wait for the change log temp to stop growing
- stop the loader
- truncate GROUPER_CHANGE_LOG_ENTRY_TEMP
- truncate GROUPER_CHANGE_LOG_ENTRY
- re-create the loader jobs
- start the loader

Will that work to avoid the extra millions of rows in the change log?

Thanks,

Scott K



Archive powered by MHonArc 2.6.19.

Top of Page