Opened 11 days ago

#26699 new enhancement

Use temporary files for storing descriptor files fetched from remote CollecTor server

Reported by: karsten Owned by: metrics-team
Priority: Medium Milestone:
Component: Metrics/Library Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

In #24153 we fixed a bug related to storing descriptor files fetched from a remote CollecTor server. We also briefly discussed using Files.createTempFile() for storing files, but we decided against doing that. Let's reconsider doing it when we have more time on our hands.

Copied from irl's comment on that other ticket: Files.createTempFile only creates the empty file and gives you a Path. The file is actually permanent (although the operating system may clean it up once the process exits) unless you open it with DELETE_ON_CLOSE on use .deleteOnExit(). (ref) One benefit might be that using tmpfs for intermediate files reduces disk I/O and speeds things up. If we're memory constrained and it becomes an issue though, we should make sure that the default temporary directory is overridden to a location on disk.

Child Tickets

Change History (0)

Note: See TracTickets for help on using tickets.