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 <>, "" <>
- Subject: RE: [grouper-users] old records not removed from grouper_change_log_entry table
- Date: Wed, 30 Nov 2016 23:42:59 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:N21H1heP85d8l8wqyG30WurmlGMj4u6mDksu8pMizoh2WeGdxcW9Zh7h7PlgxGXEQZ/co6odzbGH6Oa8ASdZvd6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCzbL52Ihi6twrcutUZjYd/Jas61wfErGZPd+lK321jOEidnwz75se+/Z5j9zpftvc8/MNeUqv0Yro1Q6VAADspL2466svrtQLeTQSU/XsTTn8WkhtTDAfb6hzxQ4r8vTH7tup53ymaINH2QLUpUjms86tnVBnlgzocOjUn7G/YlNB/jKNDoBKguRN/xZLUYJqIP/Z6Z6/RYM8WSXZEUstXSidPAJ6zb5EXAuQBI+hWspX9qVUNoxuwBwasBf/gxTBTi3DswaE2z/4sHR3a0AEiGd8FrXTarM/yNKcXSe25wqvGzDXCbvxIwzfx8JXDfw4hofGWXLJwasTdwlQoGgPAklqQqYzkPjKL2eQXqGWb7vFgWv61h246swF+vD6vxsE2hobXm40V10nJ+CNky4g2Pd21UFB3bsS4HJdNsiyWKpZ6Tt4nTmFmtys21qEKtJu5cScUx5kr2xvSZvmZf4SU4h/vTPudLDlkiH5/fL+zmgy+/Va9xuD4TMW4zVRHoytDn9LRrH4CzQbT5dKCSvZl/keuxzKP1wfL5+9cPU06krbXJ4M4zrAtjpQfrF3PHijtl0rolqOWcVgk+vSz5OTgf7XmoIKTO5VsigHkNaQuhtKwDvgkMggPWGib//6w1Lr+/U3lRLVKifo2kqrDvJ/GIsQbo7a1Aw5T0ok99xayFymq384EkXUaKV9JZQ+Lg5XsNlHAL/30EeuzjlGunTh1yP3KIrjsD5DTInTfkLrtZbN95FRdyAo3w9Bf/ZVUCrQZLfL2RkDxtNzZDx4nPAyu2OvnCc592Z8EVWKSGq+WLqXSsVmS6u0xPuaMeZcZuCzhJPg9+/7ukXg5lEcSfamz2psXdWi4Eep8I0mAfHrsmckOEX0RvgclSOzqiUaCUSJIZ3qsRa485zc7CJ64AofZQICinqCB0DmhEpJIe29GFwPELXC9XYiCE90BZSmSL9UpxjYJWLOhRpUJ3haqqQrwyrMhI+bJrGlQ/53508Vt6veWiAo/7ydcDsKB3nuLQn0u2G4EWnV+iK9lplFlx03GzLN1medwFNpP6ulPXxtgc5PQ0ropJcr1X1eLXsabRUziCv6mGzAqBJplxtQOclRwAf2jlRuFwjKnBblTmrCWUs9nupnA1mT8cp4ug03N07Ms2hx/GpNC
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Run this query: select status, started_time, ended_time, millis, job_message from grouper_loader_log where JOB_NAME = 'MAINTENANCE_cleanLogs';
Are you getting successes? I think what can happen is the database can choke on the delete query since there are so many records. Can you remove the records with a loop of SQL? If we
need to change the logic we can delete records a chunk at a time… though I haven’t seen this problem before in Grouper (I have seen it in other systems though) Thanks Chris From: [mailto:]
On Behalf Of Ben Beecher For the past two weeks we've been dealing with disk space issues in our Grouper database. On 11/10 the data tablespace grew very large, apparently because we had assigned view privileges to a large number of users. We have about 41700
reference groups and we had assigned the view privilege to each group for about 130000 users. This produced a large number of transactions and the grouper_change_log_entry table grew very large. On 11/17 there were 148 million records in that table and it
was growing by 16 million records per day. Our data tablespace grew from about 30GB to 171GB. We truncated the grouper_change_log_entry table and we added these lines to the grouper-loader.properties file and restarted the loader: loader.retain.db.logs.days=1 loader.retain.db.change_log_entry.days=1 We removed the view privileges for those 130000 users to the reference groups and that created several million new transactions. We expected the table to shrink but it still has 131 million records. It is currently growing by about 4133
records per day. The old records are not being removed. Our data tablespace has grown to 179GB. Why are the old records not being removed from the grouper_change_log_entry table? Should we truncate the table again? The created_on field should contain milliseconds since epoch but those values are much larger than expected (E+15 instead of E+12): sql> select (sysdate - to_date('01-Jan-1970', 'dd-Mon-yyyy')) * 86400000 from dual; 1.4804E+12 (millis since epoch for today) sql> select created_on,TO_DATE('1970-01-01','YYYY-MM-DD') + created_on / 86400000 from grouper_change_log_entry where sequence_number=166996954; CREATED_ON TO_DATE(' ---------- --------- 1.4794E+15 25-OCT-14 (millis since epoch for the oldest record in that table) sql> select created_on,TO_DATE('1970-01-01','YYYY-MM-DD') + created_on / 86400000 from grouper_change_log_entry where sequence_number=297672536; CREATED_ON TO_DATE(' ---------- --------- 1.4804E+15 23-AUG-46 (millis since epoch for the newest record in that table) I set log level to DEBUG and I did not see any error messages in the log regarding the grouper_change_log_entry table. Ben |
- [grouper-users] old records not removed from grouper_change_log_entry table, Ben Beecher, 11/29/2016
- RE: [grouper-users] old records not removed from grouper_change_log_entry table, Hyzer, Chris, 11/30/2016
Archive powered by MHonArc 2.6.19.