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: "Hyzer, Chris" <>
  • To: Scott Koranda <>
  • Cc: grouper-users <>
  • Subject: RE: [grouper-users] StaleObjectStateException thrown by loader jobs after patch
  • Date: Thu, 15 Feb 2018 19:32:12 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:oMB6KRAw0PpwJOklCh4AUyQJP3N1i/DPJgcQr6AfoPdwSPX6r8bcNUDSrc9gkEXOFd2Cra4c0KyO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUijexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Qiqp4bt1RxD0iScHLz85/3/Risxsl6JQvRatqwViz4LIfI2ZMfxzdb7fc9wHX2pMRsZfWTJcDIOgYYUBDOQBMuRZr4bhqFUBogCzBRW1BO/z1jNEmmP60bM83u88EQ/GxgsgH9cWvXjartv0NKYTXv6vzKXQ0D7OcfNW2S386IjTfBwqvPaBXbdsfsrRyUguFh3Kjk+LpIzkJDOayv4Bs3WD7+V+U+KvjXQrpB9srTiy38ohjJTCiIENyl3c6yl13Yc4Kce2RUJle9KoDZhduzyAO4drQc4vTHlktDs0x7Eao5K2eDUGxI45yxLCb/GLaZWE7xDiWeqJLzd3mnFodK66ihu37ESv1+7xW8ax3VlUtCVJjtzBu3MT2BDN7sWKT+By80ev2TmT0Q3Y9/tKLloulaXBLp4s2r4wmYQXsUTEBiL4gFn7gqiKekk54+Sl9ubobqv/qp+bLIB7lBvyMqMzmsyjGus4NRUOX26G9uimzL3j50r5QKlUgfIqjqnZsZfaJcIBqq6+Hg9VzoIj6xG4DzelytgXgX4HLFdddBKGiYjmJU3OLejmAfuiglmgijlmy+7cMrH8AZjBM2LPnKricLty80JczRA8zdFb55JaELEBJ/fzV1f0tNPEDh84Mw21zPj9CNhm14MeQn6ADrWEMKPKr1CI4OQvL/OSa4AIpTbxM+Il6OL2jX8lhV8derGk3ZQNaHC/A/RmO1uWYWD1jtccCmcFoBA+TPfxhV2GUD5TfGqyX7ki6j0hCYKmC5vDSZ63gLyHwii7AoNaanpYBV+RDHe7P7mDDswHbz6OauxmiDUCWbHpH5Qi0gunsgPz47ViJ+vQvCYfsMSw+sJy4riZtQAg+CYwR++dyWCWBSkgm2gIVi07xoh+ukc710+O164+jvBFQ48Ar8hVWxs3YMaPh9dxDMr/D0eYJo+E
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Ok, the restriction in the change log is for the value assignments, not the
attribute assignments. So these are a one time thing.

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

Do you know how long it would take? Is it just the change log temp to change
log or is it individual processors?
Maybe we need to switch to a batched SQL paradigm for the change log temp to
change log processing...

About your recipe

- make sure all "real" work is processed
- stop the loader

right

- delete loader jobs

I don't know why you need to delete the jobs

- patch
- start the loader

run all the loader jobs

- wait for the change log temp to stop growing

wait for jobs to finish?

- stop the loader
- truncate GROUPER_CHANGE_LOG_ENTRY_TEMP
- truncate GROUPER_CHANGE_LOG_ENTRY

Run the PIT sync in GSH: new
edu.internet2.middleware.grouper.misc.SyncPITTables().syncAllPITTables()

- re-create the loader jobs

If you aren't deleting them you don't need to recreate them

- start the loader


-----Original Message-----
From: Scott Koranda
[mailto:]

Sent: Thursday, February 15, 2018 12:16 PM
To: Hyzer, Chris
<>
Cc: grouper-users
<>
Subject: Re: [grouper-users] StaleObjectStateException thrown by loader jobs
after patch

> 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