Description of problem:
After Uploading an EAP Patch/Bundle, followed by an EAP Bundle Delete - JON server disk space does not get reclaimed. This has been seen via both the UI and CLI
Version-Release number of selected component (if applicable):
JON 3.3 ER03.1
Steps to Reproduce:
1. On JON server, use df to get the disk utilization stats for the partition on which JON and PSQL reside.
2. From the UI, Upload an EAP patch, such as jboss-eap-6.2.3-patch.zip using Bundle Creation Wizzard.
3. Once the upload is complete, again, get the disk utilization stats using df on the JON server.
4. From the UI, delete the EAP Bundle.
5. On the JON server, get the disk utilization stats.
6. Repeate the process 2 or 3 more times.
7. Try a Vacuum operation on the RHQ database, and then get JON disk utilization stats.
JON server disk utilization does not decrease after deleting an EAP Bundle.
Disk utilization should be reclaimed after deleting an EAP Bundle.
Created attachment 940108 [details]
From JON perspective, things seem to work OK in my testing. When a bundle version is deleted, all associated data is deleted from the database.
This might be an issue with Postgres.
If you're able to reproduce this, could you point me to your server so that I can investigate the environment there?
Upon discussing this with other devs, this is not considered an issue because it is default (and correct) behavior of Postgres.
The data files are not shrunk by default even during vacuum, only during vacuum full.
The argument against running vacuum full during our nightly vacuum job is the fact that shrinking the files will gradually fragment them on the disk leading to (potentially great) performance degradation.
I am closing this BZ as NOTABUG.