grouper-users - RE: [grouper-users] old records not removed from grouper_change_log_entry table
Subject: Grouper Users - Open Discussion List
List archive
RE: [grouper-users] old records not removed from grouper_change_log_entry table
Chronological Thread
- From: "Hyzer, Chris" <>
- To: Ben Beecher <>
- Cc: "" <>
- Subject: RE: [grouper-users] old records not removed from grouper_change_log_entry table
- Date: Fri, 30 Dec 2016 23:57:03 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:y39VYxe8PZG0DX0/xQc78VBWlGMj4u6mDksu8pMizoh2WeGdxcW/Zx7h7PlgxGXEQZ/co6odzbGH7+a4Bidaud6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCzbL52Ixi6txndu8sZjYd8Nqo61wfErGZPd+lK321jOEidnwz75se+/Z5j9zpftvc8/MNeUqv0Yro1Q6VAADspL2466svrtQLeTQSU/XsTTn8WkhtTDAfb6hzxQ4r8vTH7tup53ymaINH2QLUpUjms86tnVBnlgzocOjUn7G/YlNB/jKNDoBKguRN/xZLUYJqIP/Z6Z6/RYM8WSXZEUstXSidPAJ6zb5EXAuQBI+hWspX9qVUNoxuwBAmjGOzgxyRSiXPqwaE3yfgtHR3E0QEmAtkAsG7UrNLwNKoKX+y7zqnJzDTdYPNMwTv29ZbFchA7ofGNRrJ8f9faxE4qFwzZjlWRqY3kMC2P1ukWsmib9PZvWfiyi24/tQ5xpD6vyt0yhYbUm4IY01bJ/jh3zoYyIN23Uk97Ydi8HZtRsSGaK5V5QtkkQ252pCY21KcKtoCmcygXzpks2h3Ra+SffoSW+B3vSPudLDJliH54Zb6yghiy/Ee8xuHgU8S50khFoyVYntTJs30ByQDf58ifRvdg8EqtxSyD2gTO5u1eP0w4iK7WJ4Q8zrMyl5cet1nIEDXsl0XslqCWc10p+ui25OTjZbXrvoeSOpNzhA3iL6gig9GyD/w2PwQXWGiU4vqz2Kfk/U3kXLVFlfo2krTfsJ/HP8gbvrS5AwhJ0ok99xm/Ezam0NMenXUdK1JFZQ6Hj4zuO1HJI/D0F+uwg1OpkDtzxvDGOKPuAonVI3TdirjtYatx5ktBxAYu0NxS4pxUB74dLP7vX0L8tsLXAxAkPwGxxuvrFslx24MGVWKKGKCZMafSsVGS5uIoJumBfIoVtyr9K/kl5v/hk2U5lEQcfamywZQbcm24Hux4LEWfZ3rgmMkOHnoXvgYmVuzllEWCUSJPZ3a1R6886Ss7CIW7DYfbWI+tmqWN3DqgHpJIfGBGEUuBEXPpd4WfR/cMczyeLtVgkjwCSbiuVZUh1Rewuw/m1bZrNPTb9TAFtcGr6N8gzeDV3Ts/+Dd0At7Vh2uAQmp0k3kgTDgywaV1oEU7x1ueh/tWmftdQJZz9uFESENyHp7GzvcwQ4T3UQLQbNqTYFe9SZO7GTw3SJQ8z8JYMBU1IMmrkh2Wh3niOLQSjbHeQcVsqq8=
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Ben, This is fixed in 2.3.0 API patch 39. It will delete 100 records at a time efficiently instead of deleting all records at once. This this is for the change log
and daemon logs. Try it out and let us know if you have more problems in this area. Thanks Chris From: Hyzer, Chris
Ok, thanks for letting us know. We can fix that so it doesn’t happen again. I opened a jira: https://bugs.internet2.edu/jira/browse/GRP-1439 Regards, Chris From: Ben Beecher []
Chris, I ran that query and I found that the daily maintenance job was failing every day because there were too many records to delete. I tried removing the old records with a SQL command. I got an error if I tried to remove more than 2 million
records at a time. It took about 45 minutes to remove each chunk so it would have taken a few days to remove them all. I asked the DBA to truncate the grouper_change_entry_log table and the daily job is working again now. Thanks for your help with this. grp1p> alter session set nls_date_format='yyyy-mm-dd hh24:mi'; Session altered. grp1p> select status, started_time, ended_time, millis,job_message from grouper_loader_log where JOB_NAME='MAINTENANCE_cleanLogs'; STATUS
STARTED_TIME ENDED_TIME
MILLIS -------------------- ---------------- ---------------- ---------- JOB_MESSAGE -------------------------------------------------------------------------------- STARTED 2016-12-07 06:36 SUCCESS 2016-12-08 06:13 2016-12-08 06:13
911 Deleted 20880 records from grouper_loader_log older than 1 days old. Deleted 0 records from grouper_change_log_entry older than 1 days old. (1481109208896000) Ben On Wed, Nov 30, 2016 at 6:42 PM, Hyzer, Chris <> wrote:
|
- Re: [grouper-users] old records not removed from grouper_change_log_entry table, Ben Beecher, 12/08/2016
- RE: [grouper-users] old records not removed from grouper_change_log_entry table, Hyzer, Chris, 12/08/2016
- RE: [grouper-users] old records not removed from grouper_change_log_entry table, Hyzer, Chris, 12/30/2016
Archive powered by MHonArc 2.6.19.