Opened 7 years ago
Closed 6 years ago
#1699 closed enhancement (fixed)
Rasql_removes /tmp/rasdaman.*.aux.xml after encoding result is done
Reported by: | Bang Pham Huu | Owned by: | Dimitar Misev |
---|---|---|---|
Priority: | major | Milestone: | 9.7 |
Component: | conversion | Version: | development |
Keywords: | Cc: | bbell, Peter Baumann, Vlad Merticariu | |
Complexity: | Medium |
Description (last modified by )
When encoding to PNG, TIFF,…it creates the file .aux.xml in /tmp folder, e.g with this query
SELECT encode(c, "png" , "{\"metadata\":{\"resolution\":\"1\"},\"nilValues\":[{\"value\":\"119\"},{\"value\":\"208\"}, {\"value\":\"248\"}],\"nodata\":[119,208,248]}") FROM test_rgb AS c
and a file in /tmp/rasdaman.Ix3L0K.aux.xml is created with this content:
<PAMDataset> <Metadata> <MDI key="NODATA_VALUES">119 208 248</MDI> <MDI key="resolution">1</MDI> </Metadata> <Metadata domain="IMAGE_STRUCTURE"> <MDI key="INTERLEAVE">PIXEL</MDI> </Metadata> </PAMDataset>
# Also need to clean up
In case of encoding big collection in netCDF and server is crashed, it will leave a binary file (e.g: /tmp/rasdaman.4dA5yA with 466 MB). To reproduce, encode a big collection in netCDF from WCPS and when it is running, stop_rasdaman.sh.
Change History (10)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
Description: | modified (diff) |
---|
comment:3 by , 7 years ago
All these tmp files should go into a well identified and documented directory (such as /tmp/rasdaman) to allow, eg, admin cleanup, relocating ia symlink, etc.
comment:5 by , 7 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:6 by , 7 years ago
Resolution: | duplicate |
---|---|
Status: | closed → reopened |
Wait, I've already closed the other ticket This one should stay open.
comment:7 by , 7 years ago
Milestone: | 9.5 → 9.6 |
---|
comment:8 by , 7 years ago
Milestone: | 9.6 → 9.7 |
---|
comment:10 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
The temporary files are put in /tmp/rasdaman_conversion
until needed, and the aux files are properly removed as well now.
further, file .aux.xml should (i) not be hidden and (ii) have a name indicating that rasdaman is originator. This eases housekeeping by the machine's admin.