Opened 6 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 Bang Pham Huu)

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 Peter Baumann, 6 years ago

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.

comment:2 by Bang Pham Huu, 6 years ago

Description: modified (diff)

comment:3 by Peter Baumann, 6 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:4 by Dimitar Misev, 6 years ago

This ticket is duplicate of #1690

comment:5 by Vlad Merticariu, 6 years ago

Resolution: duplicate
Status: newclosed

comment:6 by Dimitar Misev, 6 years ago

Resolution: duplicate
Status: closedreopened

Wait, I've already closed the other ticket :) This one should stay open.

comment:7 by Bang Pham Huu, 6 years ago

Milestone: 9.59.6

comment:8 by Dimitar Misev, 6 years ago

Milestone: 9.69.7

comment:9 by Dimitar Misev, 6 years ago

Status: reopenedaccepted

patch submitted

comment:10 by Dimitar Misev, 6 years ago

Resolution: fixed
Status: acceptedclosed

The temporary files are put in /tmp/rasdaman_conversion until needed, and the aux files are properly removed as well now.

Note: See TracTickets for help on using tickets.