Bug 730993
Summary: | only purge unused drift files that are older than a certain time | ||||||
---|---|---|---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | John Mazzitelli <mazz> | ||||
Component: | drift | Assignee: | John Mazzitelli <mazz> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4.0.1 | ||||||
Target Milestone: | --- | ||||||
Target Release: | JON 3.0.0, RHQ 4.3.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-02-07 19:21:58 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 707225 | ||||||
Attachments: |
|
Description
John Mazzitelli
2011-08-16 13:49:57 UTC
Created attachment 518539 [details]
730993.diff
i implemented this locally. in case we want to have a global setting to say how old drift files must be before they can be purged, see the attached patch.
this was previously committed on August 16, 2011 - commit 5bdcd83af54cd10ff4b78bfba66db7330a11abd5 to test 1. first, get some drift 2. confirm "select id from rhq_drift_file" - make sure you see the rows in there (you'll use this later) 3. I think you will have to then uninventory the resource that the drift was on 4. select id from rhq_drift_file - make sure the drifts are still there you then wait for the time to expire (the time defined in the system settings) after that time, "select id from rhq_drift_file" should show you the rows are gone. rows are gone. verified. > 2. confirm "select id from rhq_drift_file" - make sure you see the rows in
> there (you'll use this later)
just to correct this - "id" isn't a valid column - "hash_id" would work
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE |